Summary: | Add SPI to launch a service service worker in a WKWebView and expose service worker to injected bundle | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||||||||
Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> | ||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||
Severity: | Normal | CC: | achristensen, beidson, benjamin, berto, cgarcia, cmarcelo, esprehn+autocc, ews-watchlist, ggaren, gustavo, japhet, kangil.han, kkinnunen, timothy, webkit-bug-importer, youennf | ||||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||
OS: | Unspecified | ||||||||||||||||
Bug Depends on: | 230649 | ||||||||||||||||
Bug Blocks: | |||||||||||||||||
Attachments: |
|
Description
Chris Dumez
2021-09-30 16:28:04 PDT
Created attachment 439791 [details]
WIP Patch
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See https://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API Created attachment 439796 [details]
WIP Patch
Created attachment 439858 [details]
WIP Patch
Created attachment 439862 [details]
Patch
Comment on attachment 439862 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=439862&action=review > Source/WebCore/page/Page.cpp:3694 > + // FIXME: We currently do not support non-normal worlds in service workers. This will be fine for our needs. > Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePageLoaderClient.h:658 > + WKBundlePageServiceWorkerGlobalObjectIsAvailableForFrameCallback serviceWorkerGlobalObjectIsAvailableForFrame; One space off in the alignment of serviceWorkerGlobalObjectIsAvailableForFrame. Created attachment 439904 [details]
Patch
Comment on attachment 439904 [details]
Patch
r=me
Tools/Scripts/svn-apply failed to apply attachment 439904 [details] to trunk.
Please resolve the conflicts and upload a new patch.
Created attachment 440099 [details]
Patch
Committed r283522 (242489@main): <https://commits.webkit.org/242489@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 440099 [details]. |