Skip to content

Commit d1256fe

Browse files
Editorial: Use settings object definition. (#330)
* Use settings object definition. * Relevant settings object not, current * relevant to what? this
1 parent b226ac6 commit d1256fe

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

index.bs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2201,7 +2201,9 @@ when invoked, must run these steps:
22012201

22022202
1. If |version| is 0 (zero), [=throw=] a [=TypeError=].
22032203

2204-
1. Let |origin| be the [=/origin=] of the global scope used to access [=/this=].
2204+
1. Let |environment| be [=/this=]'s [=/relevant settings object=].
2205+
2206+
1. Let |origin| be |environment|'s [=environment settings object/origin=].
22052207

22062208
1. If |origin| is an [=opaque origin=], [=throw=] a
22072209
"{{SecurityError}}" {{DOMException}} and abort these steps.
@@ -2271,7 +2273,9 @@ when invoked, must run these steps:
22712273
The <dfn method for=IDBFactory>deleteDatabase(|name|)</dfn> method,
22722274
when invoked, must run these steps:
22732275

2274-
1. Let |origin| be the [=/origin=] of the global scope used to access [=/this=].
2276+
1. Let |environment| be [=/this=]'s [=/relevant settings object=].
2277+
2278+
1. Let |origin| be |environment|'s [=environment settings object/origin=].
22752279

22762280
1. If |origin| is an [=opaque origin=], [=throw=] a
22772281
"{{SecurityError}}" {{DOMException}} and abort these steps.
@@ -2326,7 +2330,9 @@ when invoked, must run these steps:
23262330
The <dfn method for=IDBFactory>databases()</dfn> method,
23272331
when invoked, must run these steps:
23282332

2329-
1. Let |origin| be the [=/origin=] of the global scope used to access [=/this=].
2333+
1. Let |environment| be [=/this=]'s [=/relevant settings object=].
2334+
2335+
1. Let |origin| be |environment|'s [=environment settings object/origin=].
23302336

23312337
1. If |origin| is an [=opaque origin=],
23322338
then return [=/a promise rejected with=] a "{{SecurityError}}" {{DOMException}}.

0 commit comments

Comments
 (0)