Worker: Implement PlzDedicatedWorker for nested dedicated workers
This CL implements PlzDedicatedWorker for nested dedicated workers. This new path is used only when the runtime flags (kOffMainThreadDedicatedWorkerScriptFetch + kPlzDedicatedWorker) are enabled. // Technical details Specifically, this CL associates WebWorkerFetchContext cloned for nested dedicated workers with a script response fetched by the browser process (i.e., PlzDedicatedWorker). - Before this CL, WebWorkerFetchContext for nested dedicated workers is just cloned from a parent worker's fetch context. This means nested dedicated workers directly fetch the worker script without using the browser-fetched script. - After this CL, the fetch context is still cloned from the parent's one, but some fields of that take different values passed from the browser process (e.g., service worker provider info and loader factory info). The fetch context loads the browser-fetched script in response to a resource request from Blink. This doesn't change results of existing tests because this change is not sufficient to fix (service) worker tests disabled for PlzDedicatedWorker. Subsequent CLs will fix them. Design doc: https://docs.google.com/document/d/1fWsD0oIa5sNDfUFWGJZ41pDo3zzsbFGyQSNdV8nOG4I/edit# Bug: 906991 Change-Id: I63e375f2e29e73cc59caa30be242155217e52919 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1635128 Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by:Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#665503}
Showing
Please register or sign in to comment