service worker: Terminate when loading the installed script failed.
Before this CL, we called DidEvaluateClassicScript() with false, but this doesn't actually terminate the thread and is counted as a successful startup by the browser. It's only terminated in when the script is being installed, by ServiceWorkerRegisterJob. Since M69, we'd get a process kill because the timing milestones wouldn't make sense, as script evaluate start would be null (zero). This CL makes startup fail, sends OnStopped to the browser process, and terminates the worker thread. Bug: 881100 Change-Id: I452986d8a51344a7ba465fd5c91861bf2443e15e Reviewed-on: https://chromium-review.googlesource.com/1208997 Commit-Queue: Matt Falkenhagen <falken@chromium.org> Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#589125}
Showing
Please register or sign in to comment