Skip to content

Commit 31672e3

Browse files
committed
feat(navigation): Ignore duplicate navigations
1 parent d76b15c commit 31672e3

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

source

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106305,6 +106305,42 @@ location.href = '#foo';</code></pre>
106305106305
data-x="apply the traverse history step">traversing</span> are ignored.</p>
106306106306
</li>
106307106307

106308+
<li>
106309+
<p>If <var>navigable</var>'s <span>ongoing navigation</span> is not null, and all of the following
106310+
are true:</p>
106311+
106312+
<ul>
106313+
<li>
106314+
<p>the time elapsed since the ongoing navigation was initiated is within a
106315+
user-agent-defined threshold;</p>
106316+
</li>
106317+
<li>
106318+
<p>both the new and ongoing navigations are HTTP GET requests, and the new navigation is not
106319+
a form submission;</p>
106320+
</li>
106321+
<li>
106322+
<p>the navigations have an identical <var>url</var>, <span
106323+
data-x="document-state-initiator-origin">initiator origin</span>, <span
106324+
data-x="document-state-request-referrer">referrer</span>, <span
106325+
data-x="document-state-request-referrer-policy">request referrer policy</span>,
106326+
<var>userInvolvement</var>, <var>historyHandling</var>, and request headers,</p>
106327+
</li>
106328+
</ul>
106329+
<p>then:</p>
106330+
106331+
<ol>
106332+
<li>
106333+
<p>Invoke <span>WebDriver BiDi navigation failed</span> with <var>navigable</var> and a new
106334+
<span>WebDriver BiDi navigation status</span> whose <span
106335+
data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
106336+
data-x="navigation-status-status">status</span> is "<code
106337+
data-x="navigation-status-canceled">canceled</code>", and <span
106338+
data-x="navigation-status-url">url</span> is <var>url</var>.</p>
106339+
</li>
106340+
<li><p>Return.</p></li>
106341+
</ol>
106342+
</li>
106343+
106308106344
<li>
106309106345
<p><span>Set the ongoing navigation</span> for <var>navigable</var> to
106310106346
<var>navigationId</var>.</p>

0 commit comments

Comments
 (0)