From 237d8ec9563e41d6557f975cda43b96671d524db Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Tue, 15 Sep 2020 12:48:15 -0400 Subject: [PATCH 01/20] workerStart and redirects --- index.html | 44 +- timestamp-diagram.svg | 1015 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 1038 insertions(+), 21 deletions(-) diff --git a/index.html b/index.html index 6297a37..c6d59d4 100644 --- a/index.html +++ b/index.html @@ -312,8 +312,11 @@

time immediately before the user agent fired an event named `fetch` at the active - worker. Otherwise, if there is no active worker this attribute - MUST return zero. + worker. If there were redirects, this is the start time of + the the active worker of the first same-origin document in the redirect + chain. + If there is no active worker for the current document, + this attribute MUST return zero.

@@ -509,7 +512,7 @@

navigate
- Navigation where the + Navigation where the history handling behavior is set to "default" @@ -521,7 +524,7 @@

reload
- Navigation where the + Navigation where the history handling behavior is set to "reload". @@ -530,7 +533,7 @@

back_forward
- Navigation where the + Navigation where the history handling behavior is set to "entry update". @@ -624,7 +627,7 @@

  • Record the current navigation type in type if it has not been set:
      -
    1. If the navigation has the +
    2. If the navigation has the history handling behavior set to "default" @@ -632,14 +635,14 @@

      let the navigation type be the {{DOMString}} "navigate".

    3. -
    4. If the navigation has the +
    5. If the navigation has the history handling behavior set to "reload", let the navigation type be the {{DOMString}} "reload".
    6. -
    7. If the navigation has the +
    8. If the navigation has the history handling behavior set to "entry update", @@ -652,14 +655,17 @@

      fails, set both unloadEventStart and unloadEventEnd to - 0 then go to fetch-start-step. + 0 then go to worker-start-step. Otherwise, record unloadEventStart as the time immediately before the unload event.

    9. Immediately after the unload event is completed, record the current time as unloadEventEnd. If the navigation + "PerformanceNavigationTiming">unloadEventEnd. +
    10. +
    11. + If the navigation URL has an active worker registration, immediately before the user agent runs the worker @@ -801,10 +807,12 @@

      redirectEnd, unloadEventStart, unloadEventEnd and + "PerformanceNavigationTiming">unloadEventEnd, + workerStart and redirectCount to 0. Then, - return to fetch-start-step with + return to worker-start-step with the new resource.

    12. Increment nextHopProtocol, unloadEventStart and + "PerformanceNavigationTiming">unloadEventStart, + unloadEventEnd and unloadEventEnd. Set + "PerformanceNavigationTiming">workerStart. Set nextHopProtocol to the empty {{DOMString}}. @@ -1445,7 +1455,7 @@

      - Navigation where the + Navigation where the history handling behavior is set to "default" or @@ -1457,7 +1467,7 @@

      - Navigation where the + Navigation where the history handling behavior is set to "reload". @@ -1468,7 +1478,7 @@

      - Navigation where the + Navigation where the history handling behavior is set to "entry update". diff --git a/timestamp-diagram.svg b/timestamp-diagram.svg index f7d0531..fad74a3 100644 --- a/timestamp-diagram.svg +++ b/timestamp-diagram.svg @@ -1,4 +1,1011 @@ - - - - + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Cross-OriginRedirects + Same-OriginRedirects + + + (workerStart) + + + From bd93c19e2612778cb7bf6ddd176491c360068caf Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Tue, 22 Sep 2020 09:34:03 -0400 Subject: [PATCH 02/20] Color workerStart in ResourceTiming color --- timestamp-diagram.svg | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/timestamp-diagram.svg b/timestamp-diagram.svg index fad74a3..788983a 100644 --- a/timestamp-diagram.svg +++ b/timestamp-diagram.svg @@ -43,9 +43,9 @@ inkscape:window-height="1147" id="namedview289" showgrid="false" - inkscape:zoom="1.6872549" - inkscape:cx="498.92675" - inkscape:cy="150.30084" + inkscape:zoom="1.1930694" + inkscape:cx="-29.153202" + inkscape:cy="187.90981" inkscape:window-x="1912" inkscape:window-y="-8" inkscape:window-maximized="1" @@ -984,7 +984,7 @@ + id="path273-0" + style="stroke:#b45f06;stroke-opacity:1" /> + id="path275-9" + style="stroke:#b45f06;stroke-opacity:1" /> From 42cf5b5273f6039bfba172f0239167b3d900180a Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Tue, 22 Sep 2020 09:34:19 -0400 Subject: [PATCH 03/20] Add 'worker-start-step' title --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index c6d59d4..31f5c93 100644 --- a/index.html +++ b/index.html @@ -665,6 +665,7 @@

      "PerformanceNavigationTiming">unloadEventEnd.

    13. + [worker-start-step] If the navigation URL has an active worker registration, immediately before the user agent From c0735ae1adcae8b6fc69acffa9aef3b0d143826e Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Tue, 22 Sep 2020 11:04:17 -0400 Subject: [PATCH 04/20] Gate workerStart on same-origin check --- index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 31f5c93..d810ec0 100644 --- a/index.html +++ b/index.html @@ -312,9 +312,8 @@

      time immediately before the user agent fired an event named `fetch` at the active - worker. If there were redirects, this is the start time of - the the active worker of the first same-origin document in the redirect - chain. + worker. If the same-origin check + fails, this attribute MUST return zero. If there is no active worker for the current document, this attribute MUST return zero.

    14. From ddd6bb2d5c9bfc0ad55a77799202dc19e6d5fec8 Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Tue, 22 Sep 2020 11:04:59 -0400 Subject: [PATCH 05/20] Note diagram shows titles in parenthesis for documents or redirects from different origins --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index d810ec0..3e06be4 100644 --- a/index.html +++ b/index.html @@ -568,7 +568,7 @@

      This figure illustrates the timing attributes defined by the {{PerformanceNavigationTiming}} interface. Attributes in parenthesis indicate that they may not be available for navigations - involving documents from different origins. From b8e3550f57262b6ada1208ac51edaa6e2a130895 Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Tue, 22 Sep 2020 11:05:17 -0400 Subject: [PATCH 06/20] same-origin check: Make sure a redirectCount=0 case returns 'pass' --- index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.html b/index.html index 3e06be4..1337e5c 100644 --- a/index.html +++ b/index.html @@ -923,6 +923,10 @@

      request.
    15. If request's redirect count is zero, return + "pass". +
    16. +
    17. If request's redirect count is not zero, and all of request's HTTP redirects have the Date: Tue, 22 Sep 2020 11:14:56 -0400 Subject: [PATCH 07/20] Change timestamp-diagram back to normal (redirects aren't split between XO and SO), and add workerStart in --- timestamp-diagram.svg | 858 ++++++++++++++++++++---------------------- 1 file changed, 408 insertions(+), 450 deletions(-) diff --git a/timestamp-diagram.svg b/timestamp-diagram.svg index 788983a..f667f91 100644 --- a/timestamp-diagram.svg +++ b/timestamp-diagram.svg @@ -14,11 +14,11 @@ stroke="none" stroke-linecap="square" stroke-miterlimit="10" - id="svg287" + id="svg1258" sodipodi:docname="timestamp-diagram.svg" inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"> + id="metadata1264"> @@ -29,7 +29,7 @@ + id="defs1262" /> + inkscape:current-layer="g1256" /> + id="path981" /> + id="g1256"> + id="path984" /> + id="path986" /> + id="path988" /> + id="path990" /> + id="path992" /> + id="path994" /> + id="path996" /> + id="path998" /> + id="path1000" /> + id="path1002" /> + id="path1004" /> + id="path1006" /> + id="path1008" /> + + id="path1012" /> + id="path1014" /> + id="path1016" /> + id="path1018" /> + id="path1020" /> + id="path1022" /> + id="path1024" /> + id="path1026" /> + id="path1028" /> + id="path1030" /> + id="path1032" /> + id="path1034" /> + id="path1036" /> + id="path1038" /> + id="path1040" /> + id="path1042" /> + id="path1044" /> + id="path1046" /> + id="path1048" /> + id="path1050" /> + id="path1052" /> + id="path1054" /> + id="path1056" /> + id="path1058" /> + id="path1060" /> + id="path1062" /> + id="path1064" /> + id="path1066" /> + id="path1068" /> + id="path1070" /> + id="path1072" /> + id="path1074" /> + id="path1076" /> + id="path1078" /> + id="path1080" /> + id="path1082" /> + id="path1084" /> + id="path1086" /> + + id="path1090" /> + id="path1092" /> + id="path1094" /> + id="path1096" /> + id="path1098" /> + id="path1100" /> + id="path1102" /> + id="path1104" /> + id="path1106" /> + id="path1108" /> + id="path1110" /> + id="path1112" /> + id="path1114" /> + id="path1116" /> + id="path1118" /> + id="path1120" /> + id="path1122" /> + id="path1124" /> + id="path1126" /> + id="path1128" /> + id="path1130" /> + id="path1132" /> + id="path1134" /> + id="path1136" /> + id="path1138" /> + id="path1140" /> + id="path1142" /> + id="path1144" /> + id="path1146" /> + id="path1148" /> + id="path1150" /> + id="path1152" /> + id="path1154" /> + id="path1156" /> + id="path1158" /> + id="path1160" /> + id="path1162" /> + id="path1164" /> + id="path1166" /> + id="path1168" /> + id="path1170" /> + id="path1172" /> + id="path1174" /> + id="path1176" /> + id="path1178" /> + id="path1180" /> + id="path1182" /> + id="path1184" /> + id="path1186" /> + id="path1188" /> + id="path1190" /> + id="path1192" /> + id="path1194" /> + id="path1196" /> + id="path1198" /> + id="path1200" /> + id="path1202" /> + id="path1204" /> + id="path1206" /> + id="path1208" /> + id="path1210" /> + id="path1212" /> + id="path1214" /> + id="path1216" /> + id="path1218" /> + id="path1220" /> + id="path1222" /> + id="path1224" /> + id="path1226" /> + id="path1228" /> + id="path1230" /> + id="path1232" /> + id="path1234" /> + id="path1236" /> + id="path1238" /> + id="path1240" /> + id="path1242" /> + id="path1244" /> + id="path1246" /> + id="path1248" /> + id="path1250" /> + id="path1252" /> + id="path1254" /> + stroke="#000000" + stroke-width="0.691134" + stroke-linejoin="round" + stroke-linecap="butt" + d="m 256.27313,269.78933 h -1.179 l -2.50449,-7.96458" + fill-rule="evenodd" + id="path1244-2" + style="stroke:#b45f06;stroke-opacity:1" /> - Cross-OriginRedirects - Same-OriginRedirects - + d="m 254.22305,261.57942 -2.30748,-4.2424 -0.95934,4.73309 z" + fill-rule="evenodd" + id="path1246-9" + style="fill:#b45f06;fill-opacity:1;stroke:#b45f06;stroke-opacity:1" /> (workerStart) - - + id="tspan1266" + x="257.45227" + y="272.86304">(workerStart) From 8e8dfa6dca6baaa84eb7762d68c4ba999d72b34b Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Tue, 22 Sep 2020 11:50:07 -0400 Subject: [PATCH 08/20] Cleanup workerStart definition --- index.html | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index 1337e5c..0b92765 100644 --- a/index.html +++ b/index.html @@ -302,20 +302,27 @@

      {{DOMString}} "navigation".

    18. The - workerStart attribute MUST return the time immediately - before the user agent ran the worker (if the - current document has an active - service worker registration [[SERVICE-WORKERS]]) required to - service the request, or if the worker was already available, the - time immediately before the user agent fired an event named `fetch` at - the active - worker. If the same-origin check - fails, this attribute MUST return zero. - If there is no active worker for the current document, - this attribute MUST return zero. + workerStart attribute: +
    19. @@ -812,7 +819,7 @@

      "PerformanceNavigationTiming">workerStart and redirectCount to 0. Then, - return to worker-start-step with + return to fetch-start-step with the new resource.
    20. Increment Date: Tue, 22 Sep 2020 12:15:25 -0400 Subject: [PATCH 09/20] Don't make workerStart same-origin check --- index.html | 20 +++++++++++--------- timestamp-diagram.svg | 6 +++--- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index 0b92765..a84fbcf 100644 --- a/index.html +++ b/index.html @@ -132,6 +132,8 @@ 'resource-timing-2#dom-performanceresourcetiming-secureconnectionstart'> secureConnectionStart attribute is now mandatory.
    21. +
    22. exposes workerStart
    23. @@ -304,22 +306,22 @@

    24. The workerStart attribute: @@ -819,7 +821,7 @@

      "PerformanceNavigationTiming">workerStart and redirectCount to 0. Then, - return to fetch-start-step with + return to worker-start-step with the new resource.

    25. Increment + inkscape:current-layer="svg1258" /> (workerStart) + y="272.86304">workerStart From 495fee9c0ba0739c4496685f039e23ab4db42b16 Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Tue, 22 Sep 2020 12:33:37 -0400 Subject: [PATCH 10/20] Remove bonus punctuation --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index a84fbcf..319cd1e 100644 --- a/index.html +++ b/index.html @@ -309,7 +309,7 @@

    26. If the current document has no active service worker registration [[SERVICE-WORKERS]], this attribute MUST - return a {{DOMHighResTimeStamp}} with a time value equal to zero..
    27. + return a {{DOMHighResTimeStamp}} with a time value equal to zero.

    28. If there were redirects, this attribute MUST return a {{DOMHighResTimeStamp}} with a time immediately before the user agent ran the worker for From 41c6d008aaab78cfb309c07e395b6b08902301c7 Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Tue, 6 Oct 2020 10:02:03 -0400 Subject: [PATCH 11/20] Update diagram to have separate X-O and S-O parts --- timestamp-diagram.svg | 1911 +++++++++++++++++++++-------------------- 1 file changed, 996 insertions(+), 915 deletions(-) diff --git a/timestamp-diagram.svg b/timestamp-diagram.svg index 2a80e9e..70087e2 100644 --- a/timestamp-diagram.svg +++ b/timestamp-diagram.svg @@ -8,7 +8,7 @@ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" - viewBox="0.0 0.0 1020.0 320.0" + viewBox="0 0 1200 350" preserveAspectRatio="xMidYMid meet" fill="none" stroke="none" @@ -16,7 +16,9 @@ stroke-miterlimit="10" id="svg1258" sodipodi:docname="timestamp-diagram.svg" - inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"> + inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)" + width="1200" + height="350"> @@ -25,6 +27,7 @@ image/svg+xml + @@ -40,932 +43,1010 @@ inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1920" - inkscape:window-height="1177" + inkscape:window-height="1147" id="namedview1260" showgrid="false" inkscape:zoom="1" - inkscape:cx="423.54872" - inkscape:cy="-11.814335" - inkscape:window-x="3832" + inkscape:cx="527.16338" + inkscape:cy="217.48647" + inkscape:window-x="1912" inkscape:window-y="-8" inkscape:window-maximized="1" - inkscape:current-layer="svg1258" /> + inkscape:current-layer="svg1258" + inkscape:document-rotation="0" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + workerStart + x="201.5658" + y="181.75352" + style="stroke-width:0.999449">workerStart + + + WorkerStartup + + + + + + + Cross OriginWorkers &Redirects + Same Origin From 9b24a1f5e31244709d0b54ce3227caea89583e08 Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Tue, 6 Oct 2020 11:29:09 -0400 Subject: [PATCH 12/20] Refactor workerStart steps --- index.html | 50 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index 319cd1e..f51d752 100644 --- a/index.html +++ b/index.html @@ -672,19 +672,41 @@

      current time as unloadEventEnd.

    29. +
    30. Let |lastWorkerStartOrigin| be the [=opaque origin=].
    31. [worker-start-step] - If the navigation - URL has an active - worker registration, immediately before the user agent - runs the worker - record the time as {{workerStart}}, or if the worker is available, - record the time before the event named `fetch` is - fired at the active worker. Otherwise, if the navigation URL has - no matching service worker - registration, set {{workerStart}} value to zero. +
        +
      • If the [=request/current url=] + has no matching service worker + registration, set {{workerStart}} to a {{DOMHighResTimeStamp}} + with a time value of 0, and go to the + fetch-start-step.
      • +
      • + If the [=request/current url=] has an active + worker registration: +
          +
        • If |lastWorkerStartOrigin| is not the [=request/current url=]'s origin, set {{workerStart}} to a {{DOMHighResTimeStamp}} + with a time value of 0.
        • +
        • If the user agent has not yet + run the worker, + immediately before the user agent + runs the worker: +
            +
          1. Record the time as {{workerStart}}.
          2. +
          3. Let |lastWorkerStartOrigin| be the [=request/current url=]'s origin.
          4. +
          5. Go to the fetch-start-step.
          6. +
          +
        • +
        • If |lastWorkerStartOrigin| is the [=request/current url=]'s origin, go to the + fetch-start-step.
        • +
        • If the worker is available, immediately before the event named `fetch` is + fired at the active worker, record the time as {{workerStart}}.
        • + +
        +
      • +
    32. [fetch-start-step] If the new resource is to be fetched @@ -816,10 +838,8 @@

      redirectEnd, unloadEventStart, unloadEventEnd, - workerStart and - unloadEventEnd + and redirectCount to 0. Then, return to worker-start-step with the new resource. From 6d60531b2ff4b54ae356e14e260e18b2e7b6bd16 Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Wed, 7 Oct 2020 12:15:13 -0400 Subject: [PATCH 13/20] Small adjustments --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index f51d752..62939b1 100644 --- a/index.html +++ b/index.html @@ -632,6 +632,7 @@

      "resource-timing-2#dom-performanceresourcetiming-nexthopprotocol"> nextHopProtocol to the empty {{DOMString}}.

    33. +
    34. Let |lastWorkerStartOrigin| be the [=opaque origin=].
    35. Record the current navigation type in type if it has not been set:
        @@ -672,7 +673,6 @@

        current time as unloadEventEnd. -
      1. Let |lastWorkerStartOrigin| be the [=opaque origin=].
      2. [worker-start-step]
          @@ -686,7 +686,7 @@

          If the [=request/current url=] has an active worker registration:
            -
          • If |lastWorkerStartOrigin| is not the [=request/current url=]'s origin, set {{workerStart}} to a {{DOMHighResTimeStamp}} +
          • If |lastWorkerStartOrigin| is not equal to the [=request/current url=]'s origin, set {{workerStart}} to a {{DOMHighResTimeStamp}} with a time value of 0.
          • If the user agent has not yet run the worker, @@ -698,7 +698,7 @@

          • Go to the fetch-start-step.

    36. -
    37. If |lastWorkerStartOrigin| is the [=request/current url=]'s origin, go to the +
    38. If |lastWorkerStartOrigin| is equal to the [=request/current url=]'s origin, go to the fetch-start-step.
    39. If the worker is available, immediately before the event named `fetch` is From aebfddd14313b94d83cb00d6f832981757907c61 Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Wed, 7 Oct 2020 12:19:35 -0400 Subject: [PATCH 14/20] Update font in timestamp diagram --- timestamp-diagram.svg | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/timestamp-diagram.svg b/timestamp-diagram.svg index 70087e2..8e1be1d 100644 --- a/timestamp-diagram.svg +++ b/timestamp-diagram.svg @@ -27,7 +27,7 @@ image/svg+xml - + @@ -47,7 +47,7 @@ id="namedview1260" showgrid="false" inkscape:zoom="1" - inkscape:cx="527.16338" + inkscape:cx="481.66338" inkscape:cy="217.48647" inkscape:window-x="1912" inkscape:window-y="-8" @@ -1019,7 +1019,7 @@ id="path1969" /> Cross OriginCross OriginWorkers &Workers &Redirects + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:13.3333px;font-family:Consolas;-inkscape-font-specification:'Consolas, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#000000">Redirects Same Origin + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:13.3333px;font-family:Consolas;-inkscape-font-specification:'Consolas, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#000000">Same Origin From 72a84b8b5cfda126ace7679ec731acfe046f768b Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Wed, 7 Oct 2020 12:23:58 -0400 Subject: [PATCH 15/20] Diagram: Update text spacing --- timestamp-diagram.svg | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/timestamp-diagram.svg b/timestamp-diagram.svg index 8e1be1d..f5c3f6e 100644 --- a/timestamp-diagram.svg +++ b/timestamp-diagram.svg @@ -48,7 +48,7 @@ showgrid="false" inkscape:zoom="1" inkscape:cx="481.66338" - inkscape:cy="217.48647" + inkscape:cy="177.48647" inkscape:window-x="1912" inkscape:window-y="-8" inkscape:window-maximized="1" @@ -1019,22 +1019,22 @@ id="path1969" /> Cross OriginWorkers &Redirects From f7222b5196f3be6db0ba3e928e83c966fbbe015c Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Wed, 18 Nov 2020 13:09:37 -0500 Subject: [PATCH 16/20] Update text for setting workerStart attribute --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 62939b1..658df94 100644 --- a/index.html +++ b/index.html @@ -304,7 +304,7 @@

      {{DOMString}} "navigation".

    40. The - workerStart attribute: + workerStart attribute getter does the following:
      • If the current document has no active From 6f2133aef67122bebf1cc2ac6183553e3d12e819 Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Wed, 18 Nov 2020 13:10:42 -0500 Subject: [PATCH 17/20] Use 'return zero' instead of 'a DOMHighResTimeStamp with a time value of zero' --- index.html | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index 658df94..af6090b 100644 --- a/index.html +++ b/index.html @@ -309,7 +309,7 @@

      • If the current document has no active service worker registration [[SERVICE-WORKERS]], this attribute MUST - return a {{DOMHighResTimeStamp}} with a time value equal to zero.
      • + return zero.

      • If there were redirects, this attribute MUST return a {{DOMHighResTimeStamp}} with a time immediately before the user agent ran the worker for @@ -374,8 +374,7 @@

        1. If there is no previous document, or if the same-origin - check fails, return a {{DOMHighResTimeStamp}} with a time value - equal to zero. + check fails, return zero.
        2. Otherwise, return a DOMHighResTimeStamp with a @@ -391,8 +390,7 @@

          1. If there is no previous document, or if the same-origin - check fails, return a {{DOMHighResTimeStamp}} with a time value - equal to zero. + check fails, return zero.
          2. Otherwise, return a {{DOMHighResTimeStamp}} with a time value equal to the time immediately before the user agent starts the @@ -451,18 +449,15 @@

            The loadEventStart attribute MUST return a DOMHighResTimeStamp with a time value equal to the time immediately before the load event of the - current document is fired. It MUST return a DOMHighResTimeStamp with a - time value equal to zero when the load event is not fired yet. + current document is fired. It MUST return zero when the + load event is not fired yet.

            The loadEventEnd attribute MUST return a DOMHighResTimeStamp with a time value equal to the time when the load event of the current - document is completed. It MUST return a DOMHighResTimeStamp with a - time value equal to zero when the load event is not fired or is not - completed. + document is completed. It MUST return zero when the load + event is not fired or is not completed.

            The type attribute MUST return a {{DOMString}} describing @@ -627,8 +622,7 @@

          3. Set entryType and initiatorType to the {{DOMString}} "navigation".
          4. -
          5. Set {{startTime}} to a {{DOMHighResTimeStamp}} with a time value - of zero, and Set {{startTime}} to zero, and nextHopProtocol to the empty {{DOMString}}.
          6. From 2dec9c0b721d9e1472c69689a90299ea4440e432 Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Thu, 19 Nov 2020 10:31:36 -0500 Subject: [PATCH 18/20] worker-start-step: Define 'worker' --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index af6090b..132b29f 100644 --- a/index.html +++ b/index.html @@ -680,6 +680,7 @@

            If the [=request/current url=] has an active worker registration:
              +
            • Let |worker| be the registration's active worker
            • If |lastWorkerStartOrigin| is not equal to the [=request/current url=]'s origin, set {{workerStart}} to a {{DOMHighResTimeStamp}} with a time value of 0.
            • If the user agent has not yet @@ -696,7 +697,7 @@

              fetch-start-step.

            • If the worker is available, immediately before the event named `fetch` is - fired at the active worker, record the time as {{workerStart}}.
            • + fired at the worker, record the time as {{workerStart}}.

          7. From 72a247f0284d9e4c9910aa68bd438505d483868a Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Tue, 1 Dec 2020 10:35:56 -0500 Subject: [PATCH 19/20] Simplifying 0 values for times further --- index.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 132b29f..8f7db1c 100644 --- a/index.html +++ b/index.html @@ -673,16 +673,14 @@

          8. If the [=request/current url=] has no matching service worker - registration, set {{workerStart}} to a {{DOMHighResTimeStamp}} - with a time value of 0, and go to the + registration, set {{workerStart}} to 0, and go to the fetch-start-step.
          9. If the [=request/current url=] has an active worker registration:
            • Let |worker| be the registration's active worker
            • -
            • If |lastWorkerStartOrigin| is not equal to the [=request/current url=]'s origin, set {{workerStart}} to a {{DOMHighResTimeStamp}} - with a time value of 0.
            • +
            • If |lastWorkerStartOrigin| is not equal to the [=request/current url=]'s origin, set {{workerStart}} to 0.
            • If the user agent has not yet run the worker, immediately before the user agent From 24b66c840f2a553bc20de9f10d5a59841c5be620 Mon Sep 17 00:00:00 2001 From: Nic Jansma Date: Tue, 1 Dec 2020 10:46:31 -0500 Subject: [PATCH 20/20] Update last clause of worker-start-step --- index.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 8f7db1c..caae328 100644 --- a/index.html +++ b/index.html @@ -695,8 +695,13 @@

              fetch-start-step.

            • If the worker is available, immediately before the event named `fetch` is - fired at the worker, record the time as {{workerStart}}.
            • - + fired at the worker: +
                +
              1. Record the time as {{workerStart}}.
              2. +
              3. Let |lastWorkerStartOrigin| be the [=request/current url=]'s origin.
              4. +
              5. Go to the fetch-start-step.
              6. +
              +