Bug 249550
| Summary: | Give clients the ability to override the WKPreferences that a ServiceWorker gets | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Brady Eidson <beidson> |
| Component: | WebKit Misc. | Assignee: | Brady Eidson <beidson> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | cdumez, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Brady Eidson
Give clients the ability to override the WKPreferences that a ServiceWorker gets
Right now, they either get preferences from the first page in a process pool, or a default set of preferences if the process pool has never had any.
In practice, clients need to control the WKPreferences a ServiceWorker gets - Even if they've never created a WKWebView!
e.g. When an app wakes up to handle a web push message.
New WKWebsiteDataStore SPI will allow specifying "override preferences for a ServiceWorker"
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/103487822>
Brady Eidson
Pull request: https://github.com/WebKit/WebKit/pull/7823
EWS
Committed 258175@main (20f6befea658): <https://commits.webkit.org/258175@main>
Reviewed commits have been landed. Closing PR #7823 and removing active labels.