Skip to content

Commit

Permalink
Prevent top-level navigation of data URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Feb 12, 2020
1 parent fdbd2bd commit 2d9e6b0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -84565,6 +84565,11 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface
and <var>browsingContext</var>, then set <var>response</var> to a <span>network error</span>
and <span>break</span>. <ref spec="CSP"></p></li>

<li><p>Otherwise, if <var>browsingContext</var> is a <span>top-level browsing context</span>
and <var>currentURL</var>'s <span data-x="concept-url-scheme">scheme</span> is "<code
data-x="">data</code>", set <var>response</var> to a <span>network error</span> and
<span>break</span>.</p></li>

<li>
<p>Otherwise:</p>

Expand Down Expand Up @@ -84603,7 +84608,14 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface
data-x="concept-response-location-url">location URL</span> that is a <span>URL</span> whose <span
data-x="concept-url-scheme">scheme</span> is "<code data-x="">blob</code>", "<code
data-x="">file</code>", "<code data-x="">filesystem</code>", or "<code
data-x="">javascript</code>", then set <var>response</var> to a network error.</p></li>
data-x="">javascript</code>", then set <var>response</var> to a <span>network
error</span>.</p></li>

<li><p>Otherwise, if <var>response</var> has a <span
data-x="concept-response-location-url">location URL</span> that is a <span>URL</span> whose <span
data-x="concept-url-scheme">scheme</span> is "<code data-x="">data</code>" and
<var>browsingContext</var> is a <span>top-level browsing context</span>, then set
<var>response</var> to a <span>network error</span>.</p></li>

<li><p>Otherwise, if <var>response</var> has a <span
data-x="concept-response-location-url">location URL</span> that is a <span>URL</span> whose <span
Expand Down

0 comments on commit 2d9e6b0

Please sign in to comment.