From 7641acb8e8a6d32ee7292b3b7148e6abf12ebae7 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Mon, 13 Jan 2025 13:57:28 +0100 Subject: [PATCH 1/9] Navigation comitted --- source | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source b/source index 243c0c1cf7f..c9e850d8871 100644 --- a/source +++ b/source @@ -4592,12 +4592,14 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • navigation status id
  • navigation status status
  • navigation status canceled
  • +
  • navigation status committed
  • navigation status pending
  • navigation status complete
  • navigation status url
  • -
  • WebDriver BiDi navigation started
  • WebDriver BiDi navigation aborted
  • +
  • WebDriver BiDi navigation committed
  • WebDriver BiDi navigation failed
  • +
  • WebDriver BiDi navigation started
  • WebDriver BiDi download started
  • WebDriver BiDi fragment navigated
  • WebDriver BiDi DOM content loaded
  • @@ -102165,6 +102167,14 @@ location.href = '#foo'; referrer.

    + +
  • Invoke WebDriver BiDi navigation committed with navigable, + and a new WebDriver BiDi navigation status whose id is + document's during-loading navigation + ID for WebDriver BiDi, status is + "comitted", and url is document's URL.

  • From 54217df562607f1e3b22b1f86828d543ed577820 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Wed, 15 Jan 2025 09:11:27 +0100 Subject: [PATCH 2/9] fix indent --- source | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source b/source index c9e850d8871..ba5875d07cc 100644 --- a/source +++ b/source @@ -102168,13 +102168,13 @@ location.href = '#foo'; -
  • Invoke WebDriver BiDi navigation committed with navigable, - and a new WebDriver BiDi navigation status whose id is - document's during-loading navigation - ID for WebDriver BiDi, status is - "comitted", and url is document's URL.

  • +
  • Invoke WebDriver BiDi navigation committed with navigable + and a new WebDriver BiDi navigation status whose id is + document's during-loading navigation + ID for WebDriver BiDi, status is + "comitted", and url is document's URL.

  • From d7902b05a9a9f1b20639f72edcb1295e09237407 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Wed, 15 Jan 2025 13:13:25 +0100 Subject: [PATCH 3/9] run specfmt --- source | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source b/source index ba5875d07cc..b3a732ed0ec 100644 --- a/source +++ b/source @@ -102168,11 +102168,12 @@ location.href = '#foo'; -
  • Invoke WebDriver BiDi navigation committed with navigable - and a new WebDriver BiDi navigation status whose id is - document's during-loading navigation - ID for WebDriver BiDi, status is - "comitted", and

    Invoke WebDriver BiDi navigation committed with navigable and + a new WebDriver BiDi navigation status whose id is document's during-loading navigation ID for WebDriver + BiDi, status is "comitted", and url is document's URL.

  • From 80caa5a620d421c7a5cb920daec921e5aad18b7c Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Thu, 16 Jan 2025 09:43:55 +0100 Subject: [PATCH 4/9] move to step 6 --- source | 45 ++++++++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/source b/source index b3a732ed0ec..911ba458980 100644 --- a/source +++ b/source @@ -102099,17 +102099,33 @@ location.href = '#foo';
  • Otherwise, if navigationParams's response's status is not 204 and is not 205, then set - entry's document state's document to the result of loading a - document given navigationParams, sourceSnapshotParams, and - entry's document state's initiator origin.

    + data-x="concept-response-status">status is not 204 and is not 205, then:

    -

    This can result in setting entry's document state's document to null, e.g., when handing-off to external software.

    +
      +
    1. +

      Set entry's document state's document to the result of loading a + document given navigationParams, sourceSnapshotParams, and + entry's document state's initiator origin.

      + +

      This can result in setting entry's document state's document to null, e.g., when handing-off to external software.

      +
    2. + +
    3. Invoke WebDriver BiDi navigation committed with navigable and + a new WebDriver BiDi navigation status whose id is document's during-loading navigation ID for WebDriver + BiDi, status is "comitted", and url is document's URL if entry's document state's document is not null.

    4. +
  • @@ -102167,15 +102183,6 @@ location.href = '#foo'; referrer.

  • - -
  • Invoke WebDriver BiDi navigation committed with navigable and - a new WebDriver BiDi navigation status whose id is document's during-loading navigation ID for WebDriver - BiDi, status is "comitted", and url is document's URL.

  • From 57a4cbc438cc4f570d5fccafeb7d94b77a51f047 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Thu, 23 Jan 2025 08:14:15 +0100 Subject: [PATCH 5/9] put if first --- source | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source b/source index 911ba458980..7b66f74ac8d 100644 --- a/source +++ b/source @@ -102115,16 +102115,16 @@ location.href = '#foo'; data-x="hand-off to external software">handing-off to external software.

    -
  • Invoke WebDriver BiDi navigation committed with navigable and +

  • If entry's document state's + document is not null, + invoke WebDriver BiDi navigation committed with navigable and a new WebDriver BiDi navigation status whose id is document's during-loading navigation ID for WebDriver BiDi, status is "comitted", and url is document's URL if entry's document state's document is not null.

  • + data-x="concept-document-url">URL

    From 0b16f615176863ceb42699acbdfe7b6c3554b54b Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Mon, 27 Jan 2025 17:39:47 +0100 Subject: [PATCH 6/9] move integration to update document for history step application --- source | 47 +++++++++++++++++++++-------------------------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/source b/source index 7b66f74ac8d..f3d46733722 100644 --- a/source +++ b/source @@ -102099,33 +102099,17 @@ location.href = '#foo';
  • Otherwise, if navigationParams's response's status is not 204 and is not 205, then:

    - -
      -
    1. -

      Set entry's document state's document to the result of loading a - document given navigationParams, sourceSnapshotParams, and - entry's document state's initiator origin.

      - -

      This can result in setting entry's document state's document to null, e.g., when handing-off to external software.

      -
    2. + data-x="concept-response-status">status is not 204 and is not 205, then set + entry's document state's document to the result of loading a + document given navigationParams, sourceSnapshotParams, and + entry's document state's initiator origin.

      -
    3. If entry's document state's - document is not null, - invoke WebDriver BiDi navigation committed with navigable and - a new WebDriver BiDi navigation status whose id is document's during-loading navigation ID for WebDriver - BiDi, status is "comitted", and url is document's URL

    4. -
    +

    This can result in setting entry's document state's document to null, e.g., when handing-off to external software.

  • @@ -104315,6 +104299,17 @@ location.href = '#foo';

    If documentIsNew is true, then:

      +
    1. If document's during-loading navigation ID for WebDriver + BiDi is not null, invoke WebDriver BiDi navigation committed with navigable and a + new WebDriver BiDi navigation status whose id is document's during-loading navigation ID for WebDriver + BiDi, status is "comitted", and url is document's URL

    2. +
    3. Try to scroll to the fragment for document.

    4. At this point scripts may run for the newly-created document From 4f823791e5b54c9788acced6e7041bcfb8490564 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Mon, 27 Jan 2025 17:40:35 +0100 Subject: [PATCH 7/9] check if during-loading navigation ID for WebDriver BiDi is not null --- source | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/source b/source index f3d46733722..1da01aa8111 100644 --- a/source +++ b/source @@ -104299,12 +104299,11 @@ location.href = '#foo';

      If documentIsNew is true, then:

        -
      1. If document's during-loading navigation ID for WebDriver - BiDi is not null, invoke WebDriver BiDi navigation committed with navigable and a - new WebDriver BiDi navigation status whose id is document's during-loading navigation ID for WebDriver +

      2. If document's during-loading + navigation ID for WebDriver BiDi is not null, invoke WebDriver BiDi navigation + committed with navigable and a new WebDriver BiDi navigation + status whose id is document's + during-loading navigation ID for WebDriver BiDi, status is "comitted", and url is document's Date: Thu, 30 Jan 2025 08:17:49 +0100 Subject: [PATCH 8/9] change to assertion --- source | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/source b/source index 1da01aa8111..d94752b9798 100644 --- a/source +++ b/source @@ -104299,11 +104299,14 @@ location.href = '#foo';

        If documentIsNew is true, then:

          -
        1. If document's during-loading - navigation ID for WebDriver BiDi is not null, invoke WebDriver BiDi navigation - committed with navigable and a new WebDriver BiDi navigation - status whose id is document's - during-loading navigation ID for WebDriver +

        2. Assert: document's during-loading navigation ID for WebDriver BiDi + is not null.

        3. + +
        4. Invoke WebDriver BiDi navigation committed with navigable and a + new WebDriver BiDi navigation status whose id is document's during-loading navigation ID for WebDriver BiDi, status is "comitted", and url is document's Date: Fri, 31 Jan 2025 14:12:48 +0900 Subject: [PATCH 9/9] Fix indent and rewrap --- source | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/source b/source index d94752b9798..383fbffff75 100644 --- a/source +++ b/source @@ -104296,21 +104296,21 @@ location.href = '#foo';

        5. -

          If documentIsNew is true, then: +

          If documentIsNew is true, then:

            -
          1. Assert: document's during-loading navigation ID for WebDriver BiDi - is not null.

          2. - -
          3. Invoke WebDriver BiDi navigation committed with navigable and a - new WebDriver BiDi navigation status whose id is document's during-loading navigation ID for WebDriver - BiDi, status is "comitted", and url is document's URL

          4. +
          5. Assert: document's during-loading navigation ID for WebDriver BiDi + is not null.

          6. + +
          7. Invoke WebDriver BiDi navigation committed with navigable and a + new WebDriver BiDi navigation status whose id is document's during-loading navigation ID for WebDriver BiDi, + status is "comitted", and url is document's URL

          8. Try to scroll to the fragment for document.