Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Make sure nested worker get controlled if matching a service worker r…
…egistration https://bugs.webkit.org/show_bug.cgi?id=247619 rdar://problem/102090425 Reviewed by Chris Dumez. Allow to register WorkerScriptLoader living of the main thread (nested workers do create them). Instead of registering a WorkerScriptLoader*, we now register a callback which is called when we need to set a worker as controlled. Covered by unskipped test. * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/nested-blob-url-workers.https-expected.txt: Added. * Source/WebCore/workers/WorkerScriptLoader.cpp: (WebCore::workerScriptLoaderControlledCallbackMap): (WebCore::accessWorkerScriptLoaderMap): (WebCore::WorkerScriptLoader::~WorkerScriptLoader): (WebCore::WorkerScriptLoader::loadAsynchronously): (WebCore::WorkerScriptLoader::getWorkerClientControlledCallback): (): Deleted. (WebCore::WorkerScriptLoader::fromScriptExecutionContextIdentifier): Deleted. * Source/WebCore/workers/WorkerScriptLoader.h: * Source/WebKit/WebProcess/Storage/WebSWClientConnection.cpp: (WebKit::WebSWClientConnection::setServiceWorkerClientIsControlled): Canonical link: https://commits.webkit.org/256637@main
- Loading branch information
Showing
5 changed files
with
95 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
PASS Nested blob URL workers should be intercepted by a service worker. | ||
PASS Nested worker created from a blob URL worker should be intercepted by a service worker. | ||
PASS Nested blob URL worker created from a worker should be intercepted by a service worker. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters