Shadow frame used to be used for issuing network requests, but for now it's used only for sync request for importScripts because off-main thread fetch has been launched.
Currently importScripts() in an installed worker is asking ServiceWorkerInstalledScriptManager first, and if the scripts are missing (not installed), it starts sync network requests as a fallback.
However, the spec says importScripts can "return a network error" if it's an installed worker.
https://w3c.github.io/ServiceWorker/#importscripts
That means we can avoid to create a shadow frame for installed worker. It'll make service worker startup time faster.
Comment 1 by shimazu@chromium.org
, Mar 9 2018Cc: horo@chromium.org
Labels: -OS-iOS -Pri-3 Pri-2