Skip to content

Commit 54828a7

Browse files
authored
Fix null URL handling in "get noopener for window open"
Closes #10844. Also handles the case of a blob: URL with a null blob URL entry, e.g., window.open('blob:https://video_url').
1 parent c8ec987 commit 54828a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89901,12 +89901,13 @@ dictionary <dfn dictionary>WindowPostMessageOptions</dfn> : <span>StructuredSeri
8990189901

8990289902
<p>To <dfn>get noopener for window open</dfn>, given a <code>Document</code>
8990389903
<var>sourceDocument</var>, an <span>ordered map</span> <var>tokenizedFeatures</var>, and a
89904-
<span>URL record</span> <var>url</var>, perform the following steps. They return a boolean.</p>
89904+
<span>URL record</span>-or-null <var>url</var>, perform the following steps. They return a
89905+
boolean.</p>
8990589906

8990689907
<ol>
8990789908
<li>
89908-
<p>If <var>url</var>'s <span data-x="concept-url-scheme">scheme</span> is "<code
89909-
data-x="">blob</code>":</p>
89909+
<p>If <var>url</var> is not null and <var>url</var>'s <span
89910+
data-x="concept-url-blob-entry">blob URL entry</span> is not null:</p>
8991089911

8991189912
<ol>
8991289913
<li><p>Let <var>blobOrigin</var> be <var>url</var>'s <span

0 commit comments

Comments
 (0)