You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -79,7 +80,7 @@ The API provides optional functionality that may be used as needed, including:
79
80
* diagnostics to query the state of locks, and
80
81
* an escape hatch to protect against deadlocks.
81
82
82
-
Cooperative coordination takes place within the scope of same-origin [=/agents=]; this may span multiple [=/agent clusters=].
83
+
Cooperative coordination takes place within the scope of [=/agents=] sharing a [=/storage bucket=]; this may span multiple [=/agent clusters=].
83
84
84
85
<aside class=note>
85
86
[=/Agents=] roughly correspond to windows (tabs), iframes, and workers. [=/Agent clusters=] correspond to independent processes in some user agent implementations.
@@ -154,7 +155,7 @@ The [=task source=] for [=parallel queue/enqueue steps|steps enqueued=] below is
154
155
A <dfn>resource name</dfn> is a [=JavaScript string=] chosen by the web application to represent an abstract resource.
155
156
156
157
A resource name has no external meaning beyond the scheduling algorithm, but is global
157
-
across [=/browsing contexts=]within an[=/origin=]. Web applications are free to use any resource naming scheme.
158
+
across [=/browsing contexts=]sharing a[=/storage bucket=]. Web applications are free to use any resource naming scheme.
A [=/user agent=] has a <dfn>lock manager</dfn> for each [=/origin=], which encapsulates the state of all [=lock-concept|locks=] and [=lock requests=]for that origin.
174
+
A [=/user agent=] has a <dfn>lock manager</dfn> for each [=/storage bottle=], which encapsulates the state of all [=lock-concept|locks=] and [=lock requests=]associated with a [=/storage bucket=].
174
175
175
-
Note: Pages and workers ([=/agents=]) on a single [=/origin=] opened in the same user agent share a lock manager even if they are in unrelated [=/browsing contexts=].
176
+
Note: Pages and workers ([=/agents=]) sharing a [=/storage bucket=] opened in the same user agent share a [=/lock manager=] even if they are in unrelated [=/browsing contexts=].
176
177
177
178
<div algorithm>
178
179
To <dfn>obtain a lock manager</dfn>, given an [=/environment settings object=] |environment|, run these steps:
179
180
180
-
1. Let |origin| be |environment|'s [=/origin=].
181
-
1. If |origin| is an [=/opaque origin=], then return failure.
* Agents that share a [=/storage shelf=], i.e. a per-origin [=localStorage|local storage area=][[HTML]], set of [[IndexedDB-2#database-construct|databases]][[IndexedDB-2]], or [[Service-Workers#cache-objects|caches]][[Service-Workers]].
192
-
193
-
</aside>
194
-
195
-
<aside class=issue>
196
-
Migrate this definition to [[HTML]] or [[Storage]] so it can be referenced by other standards.
0 commit comments