Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ spec: web-locks; urlPrefix: https://w3c.github.io/web-locks/
text: lock manager; url: lock-manager
text: obtain a lock manager; url: obtain-a-lock-manager
text: request a lock; url: request-a-lock
text: locks getter steps; url: dom-navigatorlocks-locks
spec: ecma; urlPrefix: https://tc39.es/ecma262/
type: dfn
text: call; url: sec-call
Expand Down Expand Up @@ -925,8 +926,7 @@ Moreover, each {{SharedStorageWorklet}}'s [=global scopes|list of global scopes=
<div algorithm>
The <dfn attribute for=SharedStorageWorkletGlobalScope>navigator</dfn> [=getter steps=] are:

1. If [=this=]'s [=addModule success=] is true, return [=this=]'s [=SharedStorageWorkletGlobalScope/navigator instance=].
1. Otherwise, throw a {{TypeError}}.
1. Return [=this=]'s [=SharedStorageWorkletGlobalScope/navigator instance=].
</div>

<div algorithm="privateAggregation getter">
Expand Down Expand Up @@ -2371,6 +2371,18 @@ interface Lock {};

Add the following sentence at the end of the paragraph that defines [=lock manager=]: "Additionally, each user agent includes one [=shared storage lock managers map=] for Web Locks API's integration with the Shared Storage API."


## Monkey Patch for locks getter steps ## {#monkey-patch-for-locks-getter-steps}

The [=locks getter steps=] should be updated to the following setps:

<div algorithm='monkey-patch-locks-getter-steps'>
1. Let |globalObject| be the [=current realm=]'s [=global object=].
1. If |globalObject| is a {{SharedStorageWorkletGlobalScope}}:
1. If the |globalObject|'s [=SharedStorageWorkletGlobalScope/addModule success=] is false, then throw a {{TypeError}}.
1. Return [=/this=]'s [=/relevant settings object=]'s {{LockManager}} object
</div>

## Monkey Patch for the "obtain a lock manager" algorithm ## {#monkey-patch-for-the-obtain-a-lock-manager-algorithm}

The [=obtain a lock manager=] algorithm should be prepended with the following steps:
Expand Down