Skip to content

Commit d547c33

Browse files
[ServiceWorker] Fix: Ensure timingInfo is returned on network fallback if SW static routing API is used w3c/ServiceWorker@ef029c5
1 parent 58d86a6 commit d547c33

1 file changed

Lines changed: 30 additions & 4 deletions

File tree

service-workers-ja.html

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
●●options
256256

257257
spec_date:2025-05-30
258-
trans_update:2025-05-30
258+
trans_update:2025-05-31
259259
source_checked:250530
260260
original_url:https://w3c.github.io/ServiceWorker/
261261
abbr_url:SW1
@@ -15745,17 +15745,43 @@ <h3 title="Handle Fetch">`~fetchを取扱う@</h3>
1574515745
Let fetchResult be the result of Create Fetch Event and Dispatch with request, registration, useHighResPerformanceTimers, timingInfo, workerRealm, reservedClient, preloadResponse, and null.
1574615746
</li>
1574715747
<li>
15748+
<p>
15749+
~IF[
15750+
%計時~報 の`~worker最終-~router~source$swT ~NEQ 空~文字列
15751+
]:
15752+
15753+
If timingInfo’s worker final router source is not an empty string:
15754+
</p>
15755+
<ol>
15756+
<li>
15757+
~Assert:
15758+
%計時~報 の`~worker最終-~router~source$swT ~EQ `network$l
15759+
15760+
Assert timingInfo’s worker final router source is "network".
15761+
</li>
15762+
<li>
1574815763
~IF[
1574915764
%~fetch結果 ~NEQ ~NULL
15750-
]~AND[
15751-
%~fetch結果 の`~sw計時~報$rsの`~worker最終-~router~source$swT ~EQ `network$l
1575215765
1575315766
15767+
~RET %計時~報
15768+
15769+
If fetchResult is null, then return timingInfo.
15770+
</li>
15771+
<li>
15772+
~Assert:
15773+
%~fetch結果 の`~sw計時~報$rsの`~worker最終-~router~source$swT ~EQ `network$l
15774+
15775+
Else:
15776+
• Assert fetchResult’s service worker timing info’s worker final router source is "network".
15777+
</li>
15778+
<li>
1575415779
%~fetch結果 の`~sw計時~報$rsの`~worker最終-~router~source$swT ~SET `fetch-event$l
1575515780
15756-
If fetchResult is not null and fetchResult’s service worker timing info’s worker final router source is set to "network":
1575715781
• Set fetchResult’s service worker timing info’s worker final router source to "fetch-event".
1575815782
</li>
15783+
</ol>
15784+
</li>
1575915785
<li>
1576015786
~RET %~fetch結果
1576115787

0 commit comments

Comments
 (0)