Skip to content

Commit 89397b7

Browse files
git squash commit for storagekey.
2677224a857e74bda9be05e9ced66501cdc6d957 Squashed and rebased d9ad8282c3527566208ac089b9f46f9856693f8a remove unnecessary changes
1 parent 0d1d24e commit 89397b7

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

index.bs

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/
2727
text: agent cluster; url: integration-with-the-javascript-agent-cluster-formalism
2828
spec: storage; urlPrefix: https://storage.spec.whatwg.org/
2929
type: dfn
30-
text: storage shelf; url: storage-shelf
30+
text: storage bucket; url: storage-bucket
31+
text: storage bottle; url: storage-bottle
3132
</pre>
3233

3334
<style>
@@ -79,7 +80,7 @@ The API provides optional functionality that may be used as needed, including:
7980
* diagnostics to query the state of locks, and
8081
* an escape hatch to protect against deadlocks.
8182

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=].
8384

8485
<aside class=note>
8586
[=/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
154155
A <dfn>resource name</dfn> is a [=JavaScript string=] chosen by the web application to represent an abstract resource.
155156

156157
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.
158159

159160
<aside class=example id=example-indexeddb-transactions>
160161
To mimic transaction locking over named stores within a named
@@ -170,32 +171,19 @@ Resource names starting with U+002D HYPHEN-MINUS (-) are reserved; requesting th
170171
## Lock Managers ## {#lock-managers}
171172
<!-- ====================================================================== -->
172173

173-
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=].
174175

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=].
176177

177178
<div algorithm>
178179
To <dfn>obtain a lock manager</dfn>, given an [=/environment settings object=] |environment|, run these steps:
179180

180-
1. Let |origin| be |environment|'s [=/origin=].
181-
1. If |origin| is an [=/opaque origin=], then return failure.
182-
1. Return |origin|'s associated [=/lock manager=].
181+
1. Let |bottle| be the result of [=/obtaining a local storage bottle map=] given |environment| and "`web-locks`".
182+
1. If |bottle| is failure, then return failure.
183+
1. Return |bottle|'s associated [=/lock manager=].
183184

184185
</div>
185186

186-
<aside class=note>
187-
188-
There is an equivalence between the following:
189-
190-
* Agents that share a [=lock manager=].
191-
* 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.
197-
</aside>
198-
199187

200188
<!-- ====================================================================== -->
201189
## Modes and Scheduling ## {#modes-scheduling}

0 commit comments

Comments
 (0)