Skip to content

Commit e85ea3a

Browse files
whimbooAutomatedTester
authored andcommitted
Fix browsing context checks for Switch To Parent Frame when already the top-level browsing context.
1 parent 7937629 commit e85ea3a

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
@@ -3573,6 +3573,16 @@ <h3><dfn>Switch To Parent Frame</dfn></h3>
35733573
<p>The <a>remote end steps</a> are:
35743574

35753575
<ol>
3576+
<li><p>Run the substeps if the <a>current browsing context</a> is already the
3577+
<a>top-level browsing context</a>:
3578+
3579+
<ol>
3580+
<li><p>If the <a>current browsing context</a> is <a>no longer
3581+
open</a>, return <a>error</a> with <a>error code</a> <a>no such
3582+
window</a>.
3583+
<li><p>Return <a>success</a> with data <a><code>null</code></a>.
3584+
</ol>
3585+
35763586
<li><p>If the <a>current parent browsing context</a> is <a>no longer
35773587
open</a>, return <a>error</a> with <a>error code</a> <a>no such
35783588
window</a>.

0 commit comments

Comments
 (0)