Skip to content

Commit 80043ef

Browse files
authored
Update marking of navigation timing to include service worker timing
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.
1 parent 3605c3f commit 80043ef

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

source

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2508,6 +2508,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
25082508
<li><dfn data-x="concept-internal-response" data-x-href="https://fetch.spec.whatwg.org/#concept-internal-response">internal response</dfn></li>
25092509
<li><dfn data-x="concept-response-location-url" data-x-href="https://fetch.spec.whatwg.org/#concept-response-location-url">location URL</dfn></li>
25102510
<li><dfn data-x="concept-response-timing-info" data-x-href="https://fetch.spec.whatwg.org/#concept-response-timing-info">timing info</dfn></li>
2511+
<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>
25112512
</ul>
25122513
</li>
25132514
<li>
@@ -87437,12 +87438,17 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
8743787438
</dl>
8743887439
</li>
8743987440

87441+
<li><p>Let <var>redirectCount</var> be 0 if <var>navigationParams</var>'s <span
87442+
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is true;
87443+
otherwise <var>navigationParams</var>'s <span data-x="navigation-params-request">request</span>'s
87444+
<span data-x="concept-request-redirect-count">redirect count</span>.
87445+
8744087446
<li><p><span>Create the navigation timing entry</span> for <var>document</var>, with
8744187447
<var>navigationParams</var>'s <span data-x="navigation-params-response">response</span>'s <span
87442-
data-x="concept-response-timing-info">timing info</span>, <var>navigationParams</var>'s <span
87443-
data-x="navigation-params-request">request</span>'s <span
87444-
data-x="concept-request-redirect-count">redirect count</span>, and
87445-
<var>navigationType</var>.</p></li>
87448+
data-x="concept-response-timing-info">timing info</span>,
87449+
<span data-x="navigation-params-response">response</span>'s <span
87450+
data-x="concept-response-service-worker-timing-info">service worker timing info</span>,
87451+
<var>redirectCount</var>, and <var>navigationType</var>.</p></li>
8744687452

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

0 commit comments

Comments
 (0)