From bc3c9299b73b5c5b8bc3553b9b3d2273d5450542 Mon Sep 17 00:00:00 2001 From: rubberyuzu Date: Mon, 10 Jul 2023 08:40:37 +0000 Subject: [PATCH] build struct --- source | 58 ++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/source b/source index c8fabd52432..0b26dac0e10 100644 --- a/source +++ b/source @@ -89382,6 +89382,19 @@ interface NotRestoredReasons { data-x="dom-not-restored-reasons-reasons">reasons's backing list with backingStruct's reasons.

+
  • If backingStruct's children + is null, set notRestoredReasons's children to null. If not, for each child of backingStruct's children:

    +
      +
    1. Create a NotRestoredReasons object given child and + realm and append it to notRestoredReasons's + children's backing list.

    2. +
    +
  • + +
  • Return notRestoredReasons.

  • A not restored reasons is a struct with the @@ -91342,7 +91355,7 @@ interface NotRestoredReasons { name string, initially the empty string.

  • A notRestoredReasons, a - NotRestoredReasons or null, initially null.

  • + not restored reasons or null, initially null.

    User agents may destroy the state to false.

    -

    To build NotRestoredReasons object for document given Document +

    To build not restored reasons for document given Document document:

      -
    1. Let notRestoredReasonsForDocument be a new NotRestoredReasons - object, created in the relevant realm of - document.

    2. +
    3. Let notRestoredReasonsForDocument be a new not restored reasons.

    4. Set notRestoredReasonsForDocument's URL to document's data-x="nav-container">container is an iframe element, then:

      1. Set the value of notRestoredReasonsForDocument's src attribute to document's - node navigable's container's - src attribute.

      2. + data-x="nrr-src">src to document's node navigable's container's src attribute.

      3. Set the value of notRestoredReasonsForDocument's id attribute to document's - node navigable's container's - id attribute.

      4. + data-x="nrr-id">id to document's node navigable's container's id attribute.

      5. Set the value of notRestoredReasonsForDocument's name attribute to document's - node navigable's container's - name attribute.

      6. + data-x="nrr-name">name to document's node navigable's container's name attribute.

    5. @@ -95538,18 +95547,17 @@ location.href = '#foo'; bfcache blocking reasons:

      1. Append reason to - notRestoredReasonsForDocument's reasons's backing list.

      2. + notRestoredReasonsForDocument's reasons.

    6. If document's bfcache blocking reasons are empty, set notRestoredReasonsForDocument's prevented bfcache state - to "no". If not, set + data-x="nrr-prevented-bfcache-state">prevented bfcache state to "no". If not, set notRestoredReasonsForDocument's prevented bfcache state + data-x="nrr-prevented-bfcache-state">prevented bfcache state to "yes".

    7. For each navigable of document's @@ -95559,15 +95567,13 @@ location.href = '#foo';

    8. Let childDocument be navigable's active document.

    9. -
    10. Build NotRestoredReasons object for document given childDocument. -

    11. +
    12. Build not restored reasons for document given childDocument.

    13. Append childDocument's node navigable's active session history entry's document state's notRestoredReasons to - notRestoredReasonsForDocument's children's backing list.

    14. + notRestoredReasonsForDocument's children.

    @@ -95578,10 +95584,10 @@ location.href = '#foo'; notRestoredReasonsForDocument.

    -

    To build NotRestoredReasons object for a top-level traversal and its descendants +

    To build not restored reasons for a top-level traversal and its descendants given navigable navigable:

      -
    1. Build NotRestoredReasons object for document given navigable's +

    2. Build not restored reasons for document given navigable's active document.

    3. Let crossOriginDescendants be an empty list.

    4. @@ -96734,7 +96740,7 @@ new PaymentRequest(…); // Allowed to use defined by this specification and other applicable specifications.

    5. If oldDocument's node navigable is a top-level - traversable, build NotRestoredReasons object for a top-level traversal and its + traversable, build not restored reasons for a top-level traversal and its descendants given oldDocument's node navigable.

    6. If oldDocument's salvageable state