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
1. Let |environment| be [=/this=]'s [=/relevant settings object=].
2210
2219
2211
-
1. Let |origin| be |environment|'s [=environment settings object/origin=].
2212
-
2213
-
1. If |origin| is an [=opaque origin=], [=throw=] a
2214
-
"{{SecurityError}}" {{DOMException}} and abort these steps.
2220
+
1. Let |map| be the result of running [=/obtain a local storage bottle map=] with |environment| and <code>"indexedDB"</code>. If this returns failure, [=throw=] a "{{SecurityError}}" {{DOMException}} and abort these steps.
1. Let |environment| be [=/this=]'s [=/relevant settings object=].
2281
2287
2282
-
1. Let |origin| be |environment|'s [=environment settings object/origin=].
2283
-
2284
-
1. If |origin| is an [=opaque origin=], [=throw=] a
2285
-
"{{SecurityError}}" {{DOMException}} and abort these steps.
2288
+
1. Let |map| be the result of running [=/obtain a local storage bottle map=] with |environment| and <code>"indexedDB"</code>. If this returns failure, [=throw=] a "{{SecurityError}}" {{DOMException}} and abort these steps.
2286
2289
2287
2290
1. Let |request| be a new [=open request=].
2288
2291
2289
2292
1. Run these steps [=in parallel=]:
2290
2293
2291
2294
1. Let |result| be the result of running
2292
-
[=delete a database=], with |environment|,
2295
+
[=delete a database=], with |map|,
2293
2296
|name|, and |request|.
2294
2297
2295
2298
1. Set |request|'s [=request/processed flag=] to true.
1. Let |environment| be [=/this=]'s [=/relevant settings object=].
2337
2340
2338
-
1. Let |origin| be |environment|'s [=environment settings object/origin=].
2339
-
2340
-
1. If |origin| is an [=opaque origin=],
2341
-
then return [=/a promise rejected with=] a "{{SecurityError}}" {{DOMException}}.
2342
-
2343
2341
1. Let |p| be [=/a new promise=].
2344
2342
2345
2343
1. Run these steps [=in parallel=]:
2346
2344
2347
-
1. Let |map| be the result of running [=/obtain a local bottle storage map=] with |environment| and <code>"indexedDB"</code>. If this returns failure, [=/reject=] |p| with an appropriate error (e.g. an "{{UnknownError}}" {{DOMException}}) and terminate these steps.
2345
+
1. Let |map| be the result of running [=/obtain a local storage bottle map=] with |environment| and <code>"indexedDB"</code>. If this returns failure, [=/reject=] |p| with a "{{SecurityError}}" {{DOMException}} and terminate these steps.
2348
2346
2349
2347
1. [=map/For each=] |name| → |db| of |map|:
2350
2348
@@ -4946,18 +4944,14 @@ The <dfn attribute for=IDBTransaction>onerror</dfn> attribute is an [=/event han
4946
4944
4947
4945
<div algorithm>
4948
4946
4949
-
To <dfn>open a database</dfn> with [=/environment settings object=] |environment|, a database |name|, a database |version|, and a |request|, run these steps:
4950
-
4951
-
1. Let |origin| be |environment|'s [=environment settings object/origin=].
4947
+
To <dfn>open a database</dfn> with [=/storage proxy map=] |map|, a database |name|, a database |version|, and a |request|, run these steps:
4952
4948
4953
-
1. Let |queue| be the [=connection queue=] for |origin| and |name|.
4949
+
1. Let |queue| be the [=connection queue=] for |map|'s [=storage proxy map/backing map=] and |name|.
4954
4950
4955
4951
1. Add |request| to |queue|.
4956
4952
4957
4953
1. Wait until all previous requests in |queue| have been processed.
4958
4954
4959
-
1. Let |map| be the result of running [=/obtain a local bottle storage map=] with |environment| and <code>"indexedDB"</code>. If this returns failure, return an appropriate error (e.g. an "{{UnknownError}}" {{DOMException}}).
4960
-
4961
4955
1. Let |db| be |map|\[|name|] if it [=map/exists=], or null otherwise.
4962
4956
4963
4957
1. If |version| is undefined, let |version| be 1 if |db| is null, or
@@ -5074,18 +5068,14 @@ optional |forced flag|, run these steps:
5074
5068
5075
5069
<div algorithm>
5076
5070
5077
-
To <dfn>delete a database</dfn> with [=/environment settings object=] |environment|, a database |name|, and a |request|, run these steps:
5071
+
To <dfn>delete a database</dfn> with [=/storage proxy map=] |map|, a database |name|, and a |request|, run these steps:
5078
5072
5079
-
1. Let |origin| be |environment|'s [=environment settings object/origin=].
5080
-
5081
-
1. Let |queue| be the [=connection queue=] for |origin| and |name|.
5073
+
1. Let |queue| be the [=connection queue=] for |map|'s [=storage proxy map/backing map=] and |name|.
5082
5074
5083
5075
1. Add |request| to |queue|.
5084
5076
5085
5077
1. Wait until all previous requests in |queue| have been processed.
5086
5078
5087
-
1. Let |map| be the result of running [=/obtain a local bottle storage map=] with |environment| and <code>"indexedDB"</code>. If this returns failure, return an appropriate error (e.g. an "{{UnknownError}}" {{DOMException}}).
5088
-
5089
5079
1. If |map|\[|name|] does not [=map/exist=], then return 0 (zero).
0 commit comments