Bug 287506
| Summary: | [ResourceMonitor] Track network usage of ServiceWorker. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Basuke Suzuki <basuke> |
| Component: | New Bugs | Assignee: | Basuke Suzuki <basuke> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Basuke Suzuki
We don't track network usage of ServiceWorker registered by iframe and also there's no direct connection
between ServiceWorker and iframe right now. To monitor network usage, send IPC message to report
network usage of ServiceWorker to all connected iframe document.
To make this happen:
1. Add new parameter, `workerIdentifier` in NetworkResourceLoadParameters.
2. Report network usage of the SharedWorker from NetworkResourceLoader to connected SharedWorker objects.
3. Tell ResourceMonitor to treate those usage as part of the resource usage of iframe.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Basuke Suzuki
rdar://144586530
Not SharedWorker, but ServiceWorker in the description.
Basuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/41375
EWS
Committed 291262@main (ab04d94a385b): <https://commits.webkit.org/291262@main>
Reviewed commits have been landed. Closing PR #41375 and removing active labels.