Skip to content

Commit fe2753c

Browse files
Disallow explicitely non top-level browsing contexts (#610)
1 parent 8ae5979 commit fe2753c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,6 +2311,11 @@ <h3><dfn>Writing content</dfn></h3>
23112311
<li>
23122312
Let |p:Promise| be a new {{Promise}} object.
23132313
</li>
2314+
<li>
2315+
If not currently executing in the currently active <a>top-level
2316+
browsing context</a>, then reject |p| with and
2317+
{{"InvalidStateError"}} {{DOMException}} and return |p|.
2318+
</li>
23142319
<li>
23152320
Let |message:NDEFMessageSource| be the first argument.
23162321
</li>
@@ -3409,6 +3414,11 @@ <h3><dfn>Writing content</dfn></h3>
34093414
<li>
34103415
Let |p:Promise| be a new {{Promise}} object.
34113416
</li>
3417+
<li>
3418+
If not currently executing in the currently active <a>top-level
3419+
browsing context</a>, then reject |p| with and
3420+
{{"InvalidStateError"}} {{DOMException}} and return |p|.
3421+
</li>
34123422
<li>
34133423
Let |reader:NDEFReader| be the {{NDEFReader}} instance.
34143424
</li>

0 commit comments

Comments
 (0)