Skip to content

Commit

Permalink
Update marking of navigation timing to include service worker timing
Browse files Browse the repository at this point in the history
Amend the parameters passed when creating the navigation timing info entry to include the service worker timing info. Also, pass 0 for redirectCount When cross-origin redirects occurred as part of the navigation.

See also w3c/navigation-timing#143 and w3c/ServiceWorker#1575.
  • Loading branch information
noamr authored Jul 21, 2021
1 parent 3605c3f commit 80043ef
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2508,6 +2508,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x="concept-internal-response" data-x-href="https://fetch.spec.whatwg.org/#concept-internal-response">internal response</dfn></li>
<li><dfn data-x="concept-response-location-url" data-x-href="https://fetch.spec.whatwg.org/#concept-response-location-url">location URL</dfn></li>
<li><dfn data-x="concept-response-timing-info" data-x-href="https://fetch.spec.whatwg.org/#concept-response-timing-info">timing info</dfn></li>
<li><dfn data-x="concept-response-service-worker-timing-info" data-x-href="https://fetch.spec.whatwg.org/#response-service-worker-timing-info">service worker timing info</dfn></li>
</ul>
</li>
<li>
Expand Down Expand Up @@ -87437,12 +87438,17 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
</dl>
</li>

<li><p>Let <var>redirectCount</var> be 0 if <var>navigationParams</var>'s <span
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is true;
otherwise <var>navigationParams</var>'s <span data-x="navigation-params-request">request</span>'s
<span data-x="concept-request-redirect-count">redirect count</span>.

<li><p><span>Create the navigation timing entry</span> for <var>document</var>, with
<var>navigationParams</var>'s <span data-x="navigation-params-response">response</span>'s <span
data-x="concept-response-timing-info">timing info</span>, <var>navigationParams</var>'s <span
data-x="navigation-params-request">request</span>'s <span
data-x="concept-request-redirect-count">redirect count</span>, and
<var>navigationType</var>.</p></li>
data-x="concept-response-timing-info">timing info</span>,
<span data-x="navigation-params-response">response</span>'s <span
data-x="concept-response-service-worker-timing-info">service worker timing info</span>,
<var>redirectCount</var>, and <var>navigationType</var>.</p></li>

<li>
<p>If <var>navigationParams</var>'s <span data-x="navigation-params-response">response</span>
Expand Down

0 comments on commit 80043ef

Please sign in to comment.