From 31672e3733a697d8605bdb7facdc985faa28b36a Mon Sep 17 00:00:00 2001 From: Anna Sato Date: Wed, 8 Oct 2025 15:26:01 +0900 Subject: [PATCH 1/2] feat(navigation): Ignore duplicate navigations --- source | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/source b/source index 8515ea42b2b..cf759953e97 100644 --- a/source +++ b/source @@ -106305,6 +106305,42 @@ location.href = '#foo'; data-x="apply the traverse history step">traversing are ignored.

+
  • +

    If navigable's ongoing navigation is not null, and all of the following + are true:

    + + +

    then:

    + +
      +
    1. +

      Invoke WebDriver BiDi navigation failed with navigable and a new + WebDriver BiDi navigation status whose id is navigationId, status is "canceled", and url is url.

      +
    2. +
    3. Return.

    4. +
    +
  • +
  • Set the ongoing navigation for navigable to navigationId.

    From 4d255ebb8433ebd992ad272d522942203b5d5907 Mon Sep 17 00:00:00 2001 From: Anna Sato Date: Fri, 17 Oct 2025 01:43:15 +0000 Subject: [PATCH 2/2] Refine duplicate navigation check --- source | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/source b/source index cf759953e97..1b302089224 100644 --- a/source +++ b/source @@ -11566,10 +11566,21 @@ partial interface Document { the user agent must do nothing. Otherwise, if the Document's origin is an opaque origin, the user agent must throw a "SecurityError" - DOMException. Otherwise, the user agent must act as it would when receiving a set-cookie-string for the document's - URL via a "non-HTTP" API, consisting of the new value - encoded as UTF-8. COOKIES ENCODING

    + DOMException. Otherwise:

    + +
      +
    1. +

      Set this Document's navigable's navigation conditions potentially changed to true.

      +

      Other operations that could set cookies, such as the Cookie Store API or receiving a Set-Cookie header in a fetch response, also cause the navigation conditions potentially changed to be set to true.

      +
    2. + +
    3. The user agent must act as it would when receiving a set-cookie-string for the document's + URL via a "non-HTTP" API, consisting of the new value + encoded as UTF-8. COOKIES ENCODING

      +
    4. + +

    Since the cookie attribute is accessible @@ -103073,6 +103084,11 @@ interface NotRestoredReasons {

    This is only ever set to true in cases where the navigable's parent is non-null.

    +
  • + +
  • +

    A navigation conditions potentially changed boolean, initially false.

    +
  • The current session history entry and the @@ -106323,7 +106339,10 @@ location.href = '#foo'; data-x="document-state-initiator-origin">initiator origin, referrer, request referrer policy, - userInvolvement, historyHandling, and request headers,

    + userInvolvement, and historyHandling;

    + +
  • +

    the navigable's navigation conditions potentially changed is false,

  • then:

    @@ -106341,6 +106360,10 @@ location.href = '#foo'; +
  • +

    Set navigable's navigation conditions potentially changed to false.

    +
  • +
  • Set the ongoing navigation for navigable to navigationId.