Skip to content

Commit 1b61d39

Browse files
authored
Editorial: add note why error pages still fire a load event
1 parent 1796e9d commit 1b61d39

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

source

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112838,8 +112838,15 @@ new PaymentRequest(…); // Allowed to use
112838112838
the normal <code>Document</code> rendering rules, or mutate <var>document</var> until it
112839112839
represents the content the user agent wants to render.</p></li>
112840112840

112841-
<li><p>Act as if the user agent had <span data-x="stop parsing">stopped parsing</span>
112842-
<var>document</var>.</p></li>
112841+
<li>
112842+
<p>Act as if the user agent had <span data-x="stop parsing">stopped parsing</span>
112843+
<var>document</var>.</p>
112844+
112845+
<p class="note">This is done to avoid leaking information to the parent page about whether a
112846+
navigation has been blocked by CSP, or if the response was a <span>network error</span>. In the
112847+
case where the container is an <code>iframe</code> element, <span data-x="stop parsing">stopping
112848+
parsing</span> causes the <span>iframe load event steps</span> to run.</p>
112849+
</li>
112843112850

112844112851
<li><p>Return <var>document</var>.</p></li>
112845112852
</ol>

0 commit comments

Comments
 (0)