From 790fde777088476f7971d66c90f091d9b64830d3 Mon Sep 17 00:00:00 2001 From: domenic Date: Thu, 20 Jun 2024 02:02:11 +0000 Subject: [PATCH] deploy: 5d5ebce98d7d03f389830a4388532a377c3309f0 --- no-vary-search.html | 4 ++-- prefetch.html | 51 +++++++++++++++++++++++++++--------------- prerendering.html | 28 +++++++++++------------ speculation-rules.html | 4 ++-- 4 files changed, 51 insertions(+), 36 deletions(-) diff --git a/no-vary-search.html b/no-vary-search.html index cd7db28..dc6b748 100644 --- a/no-vary-search.html +++ b/no-vary-search.html @@ -4,7 +4,7 @@ No-Vary-Search - + @@ -727,7 +727,7 @@

No-Vary-Search

-

Draft Community Group Report,

+

Draft Community Group Report,

This version: diff --git a/prefetch.html b/prefetch.html index 8dd9f73..27ae3b2 100644 --- a/prefetch.html +++ b/prefetch.html @@ -4,7 +4,7 @@ Prefetch - + @@ -588,7 +588,7 @@

Prefetch

-

Draft Community Group Report,

+

Draft Community Group Report,

This version: @@ -829,8 +829,6 @@

1.
  • If recordToUse is not null:

      -
    1. -

      Remove recordToUse from document’s prefetch records.

    2. Let currentTime be the current high resolution time for the relevant global object of document.

    3. @@ -868,7 +866,7 @@

      1.
    4. Let potentialRecords be an empty list.

    5. -

      For each record of document’s prefetch records:

      +

      For each record of document’s prefetch records:

      1. If all of the following are true, then append record to potentialRecords:

        @@ -888,7 +886,7 @@

        1.
      2. If potentialRecords is empty, return null.

      3. -

        Wait until the state of any element of document’s prefetch records changes.

        +

        Wait until the state of any element of document’s prefetch records changes.

      4. If cutoffTime is null and any element of potentialRecords has a state that is not "ongoing", set cutoffTime to the current high resolution time for the relevant global object of document.

      @@ -939,6 +937,13 @@

      1.

      Set request’s URL list to urlList.

    6. Let resultPolicyContainer be the result of determining navigation params policy container given record’s response's URL, documentState’s history policy container, sourceSnapshotParams’s source policy container, null, and responsePolicyContainer.

      +
    7. +

      Let response be record’s response.

      +
    8. +

      Optionally, set response to a clone of response.

      +

      An implementation might wish to do this if it believes that the prefetch will be consumed more than once. For example, if in the future the response is consumed by a prerender, that prerendering traversable might be destroyed through various means. Normally that would mean the response is discarded, but if the implementation performs this step, then the prefetched response will still be available to serve a future navigation. [PRERENDERING-REVAMPED]

      +
    9. +

      If the user agent did not perform the previous optional step, then it must remove record from navigable’s active document's prefetch records.

    10. Return a new navigation params, with:

      @@ -950,7 +955,7 @@

      1.

      request

      response
      -

      record’s response

      +

      response

      origin

      responseOrigin

      @@ -978,6 +983,7 @@

      1.
      fetch controller

      record’s fetch controller

      +

      In the case where the above optional step is taken, and thus record could end up generating multiple navigation params via multiple calls to this algorithm, it is OK that all such navigation params share the same fetch controller. This is because the only use of a navigation params's fetch controller is to calculate navigation timing information, which we want to be the same for any reuses.

      commit early hints

      null

      @@ -1009,7 +1015,7 @@

      1.

  • 2. HTML Patches

    This section contains patches to [HTML].

    -

    Add an additional item to navigation params as follows:

    +

    Add an additional item to navigation params as follows:

    delivery type
    @@ -1037,7 +1043,7 @@

    Otherwise, if navigable is not a top-level traversable, then:

    1. -

      Let parentEnvironment be navigable’s parent's active document's relevant settings object.

      +

      Let parentEnvironment be navigable’s parent's active document's relevant settings object.

    2. Set topLevelCreationURL to parentEnvironment’s top-level creation URL.

    3. @@ -1152,9 +1158,9 @@

      Let request be the result of creating a navigation request given entry, sourceSnapshotParams’s fetch client, navigable’s container, and sourceSnapshotParams’s has transient activation.

    4. -

      Set request’s replaces client id to navigable’s active document's relevant settings object's id.

      +

      Set request’s replaces client id to navigable’s active document's relevant settings object's id.

    5. -

      Let prefetchRecord be the result of waiting for a matching prefetch record given navigable’s active document, entry’s URL, and targetSnapshotParams’s sandboxing flags.

      +

      Let prefetchRecord be the result of waiting for a matching prefetch record given navigable’s active document, entry’s URL, and targetSnapshotParams’s sandboxing flags.

    6. If documentResource is null and prefetchRecord is not null:

        @@ -1168,7 +1174,7 @@

        Otherwise:

        1. -

          Let coopEnforcementResult be the result of creating a cross-origin opener policy enforcement result for navigation given navigable’s active document and entry’s document state's initiator origin.

          +

          Let coopEnforcementResult be the result of creating a cross-origin opener policy enforcement result for navigation given navigable’s active document and entry’s document state's initiator origin.

        2. Set navigationParams to the result of creating navigation params by fetching given request, entry, coopEnforcementResult, navigable, sourceSnapshotParams, targetSnapshotParams, cspNavigationType, navigationId, and navTimingType.

        @@ -1387,7 +1393,7 @@

        Let resultPolicyContainer be the result of determining navigation params policy container given response’s URL, entry’s document state's history policy container, sourceSnapshotParams’s source policy container, null, and responsePolicyContainer.

      1. -

        Return a new navigation params, with:

        +

        Return a new navigation params, with:

        id
        @@ -1422,7 +1428,7 @@

        navigation timing type

        navTimingType

        -
        fetch controller +
        fetch controller

        fetchController

        commit early hints @@ -1497,7 +1503,7 @@

        Queue a global task on the networking task source, given global, to:

        1. -

          If navigationParams is not a navigation params, then cancel and discard prefetchRecord given document and abort these steps.

          +

          If navigationParams is not a navigation params, then cancel and discard prefetchRecord given document and abort these steps.

        2. Assert: navigationParams’s response is the response of prefetchRecord’s redirect chain's last element.

        3. @@ -1704,6 +1710,7 @@

          abort
        4. body
        5. client +
        6. clone
        7. connection
        8. credentials
        9. credentials mode @@ -1782,6 +1789,7 @@

          csp list
        10. csp-derived sandboxing flags
        11. current context is navigation source +
        12. destroy a top-level traversable
        13. determine navigation params policy container
        14. determine the creation sandboxing flags
        15. determine the origin @@ -1888,6 +1896,7 @@

          equivalent modulo search variance
        16. getting the supported loading modes
        17. obtain a url search variance +
        18. prerendering traversable
        19. uncredentialed-prefetch
        20. url search variance @@ -2185,6 +2194,7 @@

          Prerendering Revamped - + @@ -751,7 +751,7 @@

          Prerendering Revamped

          -

          Draft Community Group Report,

          +

          Draft Community Group Report,

          This version: @@ -1529,14 +1529,14 @@

          Add [DelayWhilePrerendering] to postMessage().

          6.3.4. Geolocation API

          - Modify the getCurrentPosition() method steps by prepending the following step: + Modify the getCurrentPosition() method steps by prepending the following step:
          1. If this's relevant global object's navigable is a prerendering navigable, then append the following steps to this's post-prerendering activation steps list and return.

          - Modify the watchPosition() method steps by prepending the following step: + Modify the watchPosition() method steps by prepending the following step:
          1. If this's relevant global object's navigable is a prerendering navigable, then:

            @@ -1549,7 +1549,7 @@

          - Modify the clearWatch(watchId) method steps by prepending the following step: + Modify the clearWatch(watchId) method steps by prepending the following step:
          1. If this's relevant global object's navigable is a prerendering navigable, then:

            @@ -1955,9 +1955,9 @@

            [GEOLOCATION] defines the following terms:
              -
            • clearWatch(watchId) -
            • getCurrentPosition() -
            • watchPosition() +
            • clearWatch(watchId) +
            • getCurrentPosition() +
            • watchPosition()
          2. [HR-TIME-3] defines the following terms: @@ -2673,6 +2673,7 @@

            Speculation Rules - + @@ -619,7 +619,7 @@

            Speculation Rules

            -

            Draft Community Group Report,

            +

            Draft Community Group Report,

            This version: