From 80043ef46f931e2273432ddc4c069dc5fd4967f3 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Wed, 21 Jul 2021 12:27:53 +0100 Subject: [PATCH] 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 https://github.com/w3c/navigation-timing/pull/143 and https://github.com/w3c/ServiceWorker/pull/1575. --- source | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/source b/source index 1446967470d..c8e8092079b 100644 --- a/source +++ b/source @@ -2508,6 +2508,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • internal response
  • location URL
  • timing info
  • +
  • service worker timing info
  • @@ -87437,12 +87438,17 @@ interface Location { // but see also has cross-origin redirects is true; + otherwise navigationParams's request's + redirect count. +
  • Create the navigation timing entry for document, with navigationParams's response's timing info, navigationParams's request's redirect count, and - navigationType.

  • + data-x="concept-response-timing-info">timing info, + response's service worker timing info, + redirectCount, and navigationType.

  • If navigationParams's response