Skip to content

Commit fdbd2bd

Browse files
committed
Editorial: use break in navigate algorithm rather than a variable
Also do not assume that all responses have a location URL (even though that would make more sense data-model-wise).
1 parent f425515 commit fdbd2bd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

source

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84514,10 +84514,10 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface
8451484514
data-x="concept-request-origin">origin</span> to that <span>browsing context scope
8451584515
origin</span>.</p></li>
8451684516

84517-
<li><p>Let <var>done</var> be false and <var>reservedEnvironment</var> be null.</p></li>
84517+
<li><p>Let <var>reservedEnvironment</var> be null.</p></li>
8451884518

8451984519
<li>
84520-
<p>While <var>done</var> is false:</p>
84520+
<p>While true:</p>
8452184521

8452284522
<ol>
8452384523
<li><p>Let <var>currentURL</var> be <var>response</var>'s <span
@@ -84563,7 +84563,7 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface
8456384563
Content Security Policy?</span> algorithm returns "<code data-x="">Blocked</code>" when
8456484564
executed upon <var>request</var>, <var>navigationType</var>, <var>sourceBrowsingContext</var>,
8456584565
and <var>browsingContext</var>, then set <var>response</var> to a <span>network error</span>
84566-
and set <var>done</var> to true. <ref spec="CSP"></p></li>
84566+
and <span>break</span>. <ref spec="CSP"></p></li>
8456784567

8456884568
<li>
8456984569
<p>Otherwise:</p>
@@ -84584,7 +84584,7 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface
8458484584
data-x="concept-response-location-url">location URL</span> or the <span
8458584585
data-x="concept-response-location-url">location URL</span> is not a <span>URL</span> whose
8458684586
<span data-x="concept-url-scheme">scheme</span> is an <span>HTTP(S) scheme</span>,
84587-
then set <var>done</var> to true.</p>
84587+
then <span>break</span>.</p>
8458884588

8458984589
<p class="note">Navigation handles redirects manually as navigation is the only place in
8459084590
the web platform that cares for redirects to <code data-x="mailto protocol">mailto:</code>
@@ -84595,8 +84595,9 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface
8459584595
</ol>
8459684596
</li>
8459784597

84598-
<li><p>If <var>response</var>'s <span data-x="concept-response-location-url">location URL</span>
84599-
is failure, then set <var>response</var> to a <span>network error</span>.</p></li>
84598+
<li><p>If <var>response</var> has a <span data-x="concept-response-location-url">location
84599+
URL</span> that is failure, then set <var>response</var> to a <span>network
84600+
error</span>.</p></li>
8460084601

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

0 commit comments

Comments
 (0)