Bug 235179

Summary: Transmit network load metrics when service worker is using one of its network load to respond to FetchEvents
Product: WebKit Reporter: youenn fablet <youennf>
Component: Service WorkersAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, darin, ews-watchlist, hi, japhet, joepeck, pangle, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch for landing
none
Patch for landing ews-feeder: commit-queue-

Description youenn fablet 2022-01-13 05:01:51 PST
Transmit network load metrics when service worker is using one of its network load to respond to FetchEvents
Comment 1 youenn fablet 2022-01-13 05:06:01 PST
Created attachment 449049 [details]
Patch
Comment 2 youenn fablet 2022-01-13 11:08:12 PST
Created attachment 449086 [details]
Patch
Comment 3 Darin Adler 2022-01-14 10:24:08 PST
Comment on attachment 449086 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=449086&action=review

Assuming there is no performance problem with this additional IPC

> Source/WebCore/Modules/fetch/FetchResponse.h:123
> +    void setNetworkLoadMetrics(const NetworkLoadMetrics& networkLoadMetrics) { m_networkLoadMetrics = networkLoadMetrics; }

Would have named the argument just metrics.

> Source/WebCore/loader/WorkerThreadableLoader.cpp:243
> +void WorkerThreadableLoader::MainThreadBridge::didFinishLoading(ResourceLoaderIdentifier identifier, const NetworkLoadMetrics& networkLoadMetrics)

Here too.
Comment 4 youenn fablet 2022-01-16 22:26:35 PST
Created attachment 449306 [details]
Patch for landing
Comment 5 youenn fablet 2022-01-16 22:27:47 PST
Created attachment 449307 [details]
Patch for landing
Comment 6 EWS 2022-01-17 00:05:40 PST
Committed r288088 (246102@main): <https://commits.webkit.org/246102@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 449307 [details].
Comment 7 Radar WebKit Bug Importer 2022-01-17 00:06:20 PST
<rdar://problem/87668830>