OMT service worker fetch: Set global scope's URL for installed script
When the main script is already installed, ServiceWorkerGlobalScope retrieves the installed script from InstalledScriptsManager and bypass WorkerGlobalScope::DidImportClassicScript(). Since the URL of the global scope is set in DidImportClassicScript(), we need to set the URL when we bypass the method. This CL is a kind of workaround the cause though. Ideally we should fix the issue by refactoring ServiceWorkerGlobalScope::EvaluateClassicScriptInternal() so that we don't use InstalledScriptsManager in it. This CL fixes following NetworkServiceRestartBrowserTests: - FetchFromServiceWorkerControlledPage_RespondWithFetch - ServiceWorkerFetch Bug: 924043 Change-Id: I1189e086ae8d878d32a6a1edd0d7209a1076f526 Reviewed-on: https://chromium-review.googlesource.com/c/1496116 Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#636706}
Showing
Please register or sign in to comment