Skip to content

Commit 9afc0d6

Browse files
committed
Ensure we do a fragment navigated callback for any case where there will be no load event.
In particular if webdriver initiates a navigation to the current URL and it includes a fragment, this seems to be required to ensure the navigation completes on the WebDriver side.
1 parent 363878c commit 9afc0d6

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

source

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84930,7 +84930,7 @@ interface <dfn interface>History</dfn> {
8493084930
data-x="navigation-status-status">status</span> is "<code
8493184931
data-x="navigation-status-canceled">canceled</code>", and <span
8493284932
data-x="navigation-status-url">url</span> is <var>source browsing context</var>'s <span>active
84933-
document</span>'s <span data-x="concept-document-url">URL</span>
84933+
document</span>'s <span data-x="concept-document-url">URL</span><span
8493484934
data-x="navigation-status-url">url</span>.</p></li>
8493584935

8493684936
<li><p>Return.</p></li>
@@ -88584,6 +88584,23 @@ new PaymentRequest(&hellip;); // Allowed to use
8858488584
data-x="navigation-status-complete">complete</code>".</p></li>
8858588585
</ol>
8858688586
</li>
88587+
<li><p>If <var>stateChanged</var> is false, <var>hashChanged</var> is false and
88588+
<var>entry</var>'s <span data-x="she-document">document</span> equals the
88589+
<span>current entry</span>'s <span data-x="she-document">document</span>, then:</p>
88590+
88591+
<!-- This ensures that a WebDriver-BiDi navigation to a URL identical to the current URL,
88592+
but where the URL has a fragment part, still emits a fragment navigated event. -->
88593+
88594+
<ol>
88595+
<li><p>Invoke <span>WebDriver BiDi fragment navigated</span> with <var>newDocument</var>'s
88596+
<span data-x="concept-document-bc">browsing context</span> and a new <span>WebDriver
88597+
BiDi navigation status</span> whose <span data-x="navigation-status-id">id</span> is
88598+
<var>navigationId</var>, <span data-x="navigation-status-url">url</span> is
88599+
<var>resource</var>'s <span data-x="concept-request-url">URL</span>, and <span
88600+
data-x="navigation-status-status">status</span> is "<code
88601+
data-x="navigation-status-complete">complete</code>".</p></li>
88602+
</ol>
88603+
</li>
8858788604
</ol>
8858888605
</li>
8858988606
</ol>

0 commit comments

Comments
 (0)