Skip to content

Commit 89a387c

Browse files
committed
Fix "can have its URL rewritten" buggy fallthrough
Closes #10551.
1 parent 3ed9f71 commit 89a387c

File tree

1 file changed

+33
-15
lines changed

1 file changed

+33
-15
lines changed

source

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -91569,22 +91569,40 @@ interface <dfn interface>History</dfn> {
9156991569
data-x="concept-url-host">host</span>, or <span data-x="concept-url-port">port</span>
9157091570
components, then return false.</p></li>
9157191571

91572-
<li><p>If <var>targetURL</var>'s <span data-x="concept-url-scheme">scheme</span> is an
91573-
<span>HTTP(S) scheme</span>, then return true. (Differences in <span
91574-
data-x="concept-url-path">path</span>, <span data-x="concept-url-query">query</span>, and <span
91575-
data-x="concept-url-fragment">fragment</span> are allowed for <code data-x="http
91576-
protocol">http:</code> and <code data-x="https protocol">https:</code> URLs.)</p></li>
91577-
91578-
<li><p>If <var>targetURL</var>'s <span data-x="concept-url-scheme">scheme</span> is "<code
91579-
data-x="">file</code>", and <var>targetURL</var> and <var>documentURL</var> differ in their
91580-
<span data-x="concept-url-path">path</span> component, then return false. (Differences in <span
91581-
data-x="concept-url-query">query</span> and <span data-x="concept-url-fragment">fragment</span>
91582-
are allowed for <code data-x="">file:</code> URLs.)</p></li>
91572+
<li>
91573+
<p>If <var>targetURL</var>'s <span data-x="concept-url-scheme">scheme</span> is an
91574+
<span>HTTP(S) scheme</span>, then return true.</p>
9158391575

91584-
<li><p>If <var>targetURL</var> and <var>documentURL</var> differ in their <span
91585-
data-x="concept-url-path">path</span> component or <span data-x="concept-url-query">query</span>
91586-
components, then return false. (Only differences in <span
91587-
data-x="concept-url-fragment">fragment</span> are allowed for other types of URLs.)</p></li>
91576+
<p class="note">Differences in <span data-x="concept-url-path">path</span>, <span
91577+
data-x="concept-url-query">query</span>, and <span
91578+
data-x="concept-url-fragment">fragment</span> are allowed for <code data-x="http
91579+
protocol">http:</code> and <code data-x="https protocol">https:</code> URLs.</p>
91580+
</li>
91581+
91582+
<li>
91583+
<p>If <var>targetURL</var>'s <span data-x="concept-url-scheme">scheme</span> is "<code
91584+
data-x="">file</code>", then:</p>
91585+
91586+
<ol>
91587+
<li><p>If <var>targetURL</var> and <var>documentURL</var> differ in their <span
91588+
data-x="concept-url-path">path</span> component, then return false.</p></li>
91589+
91590+
<li><p>Return true.</p></li>
91591+
</ol>
91592+
91593+
<p class="note">Differences in <span data-x="concept-url-query">query</span> and <span
91594+
data-x="concept-url-fragment">fragment</span> are allowed for <code data-x="">file:</code>
91595+
URLs.</p>
91596+
</li>
91597+
91598+
<li>
91599+
<p>If <var>targetURL</var> and <var>documentURL</var> differ in their <span
91600+
data-x="concept-url-path">path</span> component or <span
91601+
data-x="concept-url-query">query</span> components, then return false.</p>
91602+
91603+
<p class="note">Only differences in <span data-x="concept-url-fragment">fragment</span> are
91604+
allowed for other types of URLs.</p>
91605+
</li>
9158891606

9158991607
<li><p>Return true.</p></li>
9159091608
</ol>

0 commit comments

Comments
 (0)