Skip to content

Commit

Permalink
Consistently use navigables for integration with WebDriver BiDi
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN authored Jan 15, 2025
1 parent 8029d4f commit b423343
Showing 1 changed file with 26 additions and 33 deletions.
59 changes: 26 additions & 33 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -100432,8 +100432,8 @@ location.href = '#foo';</code></pre>

<li><p>If <var>navigable</var>'s <span data-x="nav-document">active document</span>'s
<span>unload counter</span> is greater than 0, then invoke <span>WebDriver BiDi navigation
failed</span> with a <span>WebDriver BiDi navigation status</span> whose <span
data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
failed</span> with <var>navigable</var> and a <span>WebDriver BiDi navigation status</span> whose
<span data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
data-x="navigation-status-status">status</span> is "<code
data-x="navigation-status-canceled">canceled</code>", and <span
data-x="navigation-status-url">url</span> is <var>url</var>, and return.</p></li>
Expand Down Expand Up @@ -100506,16 +100506,12 @@ location.href = '#foo';</code></pre>
<var>navigable</var>'s <span>is delaying <code data-x="event-load">load</code> events</span> to
true.</p></li>

<li><p>Let <var>targetBrowsingContext</var> be <var>navigable</var>'s <span
data-x="nav-bc">active browsing context</span>.</p></li>

<li><p>Let <var>targetSnapshotParams</var> be the result of <span>snapshotting target snapshot
params</span> given <var>navigable</var>.</p></li>

<li><p>Invoke <span>WebDriver BiDi navigation started</span> with
<var>targetBrowsingContext</var>, and a new <span>WebDriver BiDi navigation status</span> whose
<span data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
data-x="navigation-status-status">status</span> is "<code
<li><p>Invoke <span>WebDriver BiDi navigation started</span> with <var>navigable</var> and a new
<span>WebDriver BiDi navigation status</span> whose <span data-x="navigation-status-id">id</span>
is <var>navigationId</var>, <span data-x="navigation-status-status">status</span> is "<code
data-x="navigation-status-pending">pending</code>", and <span
data-x="navigation-status-url">url</span> is <var>url</var>.</p></li>

Expand All @@ -100524,9 +100520,9 @@ location.href = '#foo';</code></pre>
data-x="">traversal</code>", then:</p>

<ol>
<li><p>Invoke <span>WebDriver BiDi navigation failed</span> with
<var>targetBrowsingContext</var> and a new <span>WebDriver BiDi navigation status</span> whose
<span data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
<li><p>Invoke <span>WebDriver BiDi navigation failed</span> with <var>navigable</var> and a new
<span>WebDriver BiDi navigation status</span> whose <span
data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
data-x="navigation-status-status">status</span> is "<code
data-x="navigation-status-canceled">canceled</code>", and <span
data-x="navigation-status-url">url</span> is <var>url</var>.</p></li>
Expand Down Expand Up @@ -100629,9 +100625,9 @@ location.href = '#foo';</code></pre>
navigation</span> is no longer <var>navigationId</var>, then:</p>

<ol>
<li><p>Invoke <span>WebDriver BiDi navigation failed</span> with
<var>targetBrowsingContext</var> and a new <span>WebDriver BiDi navigation status</span>
whose <span data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
<li><p>Invoke <span>WebDriver BiDi navigation failed</span> with <var>navigable</var> and a
new <span>WebDriver BiDi navigation status</span> whose <span
data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
data-x="navigation-status-status">status</span> is "<code
data-x="navigation-status-canceled">canceled</code>", and <span
data-x="navigation-status-url">url</span> is <var>url</var>.</p></li>
Expand Down Expand Up @@ -101327,10 +101323,10 @@ location.href = '#foo';</code></pre>
<var>navigable</var>, <var>historyEntry</var>, <var>entryToReplace</var>,
<var>historyHandling</var>, and <var>userInvolvement</var>.</p></li>

<li><p>Invoke <span>WebDriver BiDi fragment navigated</span> with <var>navigable</var>'s <span
data-x="nav-bc">active browsing context</span> and a new <span>WebDriver BiDi navigation
status</span> whose <span data-x="navigation-status-id">id</span> is <var>navigationId</var>,
<span data-x="navigation-status-url">url</span> is <var>url</var>, and <span
<li><p>Invoke <span>WebDriver BiDi fragment navigated</span> with <var>navigable</var> and a
new <span>WebDriver BiDi navigation status</span> whose <span
data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
data-x="navigation-status-url">url</span> is <var>url</var>, and <span
data-x="navigation-status-status">status</span> is "<code
data-x="navigation-status-complete">complete</code>".</p></li>
</ol>
Expand Down Expand Up @@ -102138,9 +102134,6 @@ location.href = '#foo';</code></pre>
<var>navigationParams</var>'s <span data-x="navigation-params-response">response</span> is
non-null.</p></li>

<li><p>Let <var>currentBrowsingContext</var> be <var>navigable</var>'s <span
data-x="nav-bc">active browsing context</span>.</p></li>

<li><p>Let <var>documentResource</var> be <var>entry</var>'s <span
data-x="she-document-state">document state</span>'s <span
data-x="document-state-resource">resource</span>.</p></li>
Expand Down Expand Up @@ -102315,9 +102308,9 @@ location.href = '#foo';</code></pre>
steps</span> for <var>navigationParams</var>'s <span
data-x="navigation-params-reserved-environment">reserved environment</span>.</p></li>

<li><p>Invoke <span>WebDriver BiDi navigation failed</span> with
<var>currentBrowsingContext</var> and a new <span>WebDriver BiDi navigation status</span>
whose <span data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
<li><p>Invoke <span>WebDriver BiDi navigation failed</span> with <var>navigable</var> and a
new <span>WebDriver BiDi navigation status</span> whose <span
data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
data-x="navigation-status-status">status</span> is "<code
data-x="navigation-status-canceled">canceled</code>", and <span
data-x="navigation-status-url">url</span> is <var>navigationParams</var>'s <span
Expand Down Expand Up @@ -102355,9 +102348,9 @@ location.href = '#foo';</code></pre>
<li><p>Handle <var>navigationParams</var>'s <span
data-x="navigation-params-response">response</span> <span>as a download</span>.</p></li>

<li><p>Invoke <span>WebDriver BiDi download started</span> with
<var>currentBrowsingContext</var> and a new <span>WebDriver BiDi navigation status</span>
whose <span data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
<li><p>Invoke <span>WebDriver BiDi download started</span> with <var>navigable</var> and a
new <span>WebDriver BiDi navigation status</span> whose <span
data-x="navigation-status-id">id</span> is <var>navigationId</var>, <span
data-x="navigation-status-status">status</span> is "<code
data-x="navigation-status-complete">complete</code>", and <span
data-x="navigation-status-url">url</span> is <var>navigationParams</var>'s <span
Expand Down Expand Up @@ -106324,11 +106317,11 @@ new PaymentRequest(&hellip;); // Allowed to use
navigation ID for WebDriver BiDi</span> is non-null, then:</p>

<ol>
<li><p>Invoke <span>WebDriver BiDi navigation aborted</span> with <var>document</var>'s <span
data-x="concept-document-bc">browsing context</span>, and a new <span>WebDriver BiDi navigation
status</span> whose <span data-x="navigation-status-id">id</span> is
<var>document</var>'s <span data-x="concept-document-navigation-id">during-loading navigation
ID for WebDriver BiDi</span>, <span data-x="navigation-status-status">status</span> is "<code
<li><p>Invoke <span>WebDriver BiDi navigation aborted</span> with <var>document</var>'s
<span>node navigable</span> and a new <span>WebDriver BiDi navigation status</span> whose <span
data-x="navigation-status-id">id</span> is <var>document</var>'s <span
data-x="concept-document-navigation-id">during-loading navigation ID for WebDriver BiDi</span>,
<span data-x="navigation-status-status">status</span> is "<code
data-x="navigation-status-canceled" >canceled</code>", and <span
data-x="navigation-status-url">url</span> is <var>document</var>'s <span
data-x="concept-document-url">URL</span>.</p></li>
Expand Down

0 comments on commit b423343

Please sign in to comment.