Skip to content

Commit dfdafb4

Browse files
authored
Do not allow named window targeting with noopener
This appears to match all existing browsers' behavior. Fixes whatwg#11291.
1 parent 7a48703 commit dfdafb4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

source

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99543,15 +99543,14 @@ interface <dfn interface>NotRestoredReasons</dfn> {
9954399543
data-x="nav-traversable">traversable navigable</span>.</p></li>
9954499544

9954599545
<li><p>Otherwise, if <var>name</var> is not an <span>ASCII case-insensitive</span> match for
99546-
"<code data-x="">_blank</code>", and there exists a <span>navigable</span> that is the result of
99547-
<span data-x="find a navigable by target name">finding a navigable by target name</span> given
99548-
<var>name</var> and <var>currentNavigable</var>, set <var>chosen</var> to that
99549-
navigable.</p></li>
99546+
"<code data-x="">_blank</code>" and <var>noopener</var> is false, then set <var>chosen</var> to
99547+
the result of <span data-x="find a navigable by target name">finding a navigable by target
99548+
name</span> given <var>name</var> and <var>currentNavigable</var>.</p></li>
9955099549

9955199550
<li>
99552-
<p>Otherwise, a new <span>top-level traversable</span> is being requested, and what happens
99553-
depends on the user agent's configuration and abilities &mdash; it is determined by the rules
99554-
given for the first applicable option from the following list:</p>
99551+
<p>If <var>chosen</var> is null, then a new <span>top-level traversable</span> is being
99552+
requested, and what happens depends on the user agent's configuration and abilities &mdash; it
99553+
is determined by the rules given for the first applicable option from the following list:</p>
9955599554

9955699555
<dl class="switch">
9955799556
<dt id="popup-blocker">If <var>currentNavigable</var>'s <span data-x="nav-window">active

0 commit comments

Comments
 (0)