diff --git a/fetch.bs b/fetch.bs index 5e7d714f6..223feb402 100644 --- a/fetch.bs +++ b/fetch.bs @@ -202,13 +202,15 @@ lt="authentication entry">authentication entries (for HTTP authentication).
Null, a global object, or a parallel queue.
cross-origin isolated capability (default false) +
timing info reported (default false) +
timing allow passed (default false)
A boolean.
timing info
A fetch timing info. -
timing info reported (default false) -
A boolean. +
cache state (default the empty string) +
The empty string, "local", or "validated"

A fetch timing info is a struct used to maintain timing @@ -2012,11 +2014,6 @@ message as HTTP/2 does not support them.

The source and length concepts of a network's response's body are always null. -

A response has an associated -cache state (the empty string, -"local", or "validated"). Unlesss stated otherwise, it is the empty -string. -

This is intended for usage by Service Workers and Resource Timing. [[SW]] [[RESOURCE-TIMING]]

  • If request's timing allow failed flag is unset, then set - internalResponse's timing allow passed flag. + fetchParams's timing allow passed to true.

  • If response is not a network error and any of the following returns @@ -4180,9 +4173,8 @@ steps: controller, terminate the ongoing fetch with the aborted flag set.

    To report timing for a fetch controller -controller, given a response response, a -global object global, and a string initiatorType -(default "other"), run these steps: +controller, given a global object global, and a +string initiatorType (default "other"), run these steps:

    1. Let fetchParams be controller's @@ -4193,15 +4185,12 @@ steps:
    2. Set fetchParams's timing info reported to true. -

    3. Let originalURL be fetchParams's - request's URL. -

    4. Let timingInfo be fetchParams timing info. -

    5. Let cacheState be response's cache state. +

    6. Let cacheState be fetchParams's cache state.

    7. -

      If response's timing allow passed flag is not set, then: +

      If fetchParams's timing allow passed is false, then:

      1. Set timingInfo to a the result of creating an opaque timing info for @@ -4215,8 +4204,9 @@ steps: relevant settings object's cross-origin isolated capability. -

      2. Mark resource timing for timingInfo, originalURL, - initiatorType, global, and cacheState. +

      3. Mark resource timing for timingInfo, fetchParams's + request's URL, initiatorType, + global, and cacheState.

      @@ -4963,7 +4953,7 @@ steps. They return a response.
      1. Set response to storedResponse. -

      2. Set response's cache state to "local". +

      3. Set fetchParams's cache state to "local".

      4. Let revalidateRequest be a clone of request. @@ -5016,7 +5006,7 @@ steps. They return a response. chapter of HTTP Caching [[!HTTP-CACHING]].

      5. Otherwise, set response to storedResponse and set - response's cache state to "local". + fetchParams's cache state to "local".

    @@ -5066,7 +5056,8 @@ steps. They return a response.
  • Set response to storedResponse. -

  • Set response's cache state to "validated". +

  • Set fetchParams's cache state to + "validated".

  • Update timing info from stored response given fetchParams's timing info and response. @@ -7472,9 +7463,8 @@ method steps are:

  • Abort fetchController. -

  • Let handleFetchDone given response response be to - report timing for fetchController, with - response, globalObject, and "fetch". +

  • Let handleFetchDone be to report timing for + fetchController, with globalObject, and "fetch".

  • Set fetchController to the result of fetching