commit | 5aa265a985035752eba06465cd4aa44c151b4336 | [log] [tgz] |
---|---|---|
author | Kenichi Ishibashi <bashi@chromium.org> | Thu Feb 28 07:01:45 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Feb 28 07:01:45 2019 |
tree | 63cdd13f5d194a8a2458438ca82bb5686a7ca512 | |
parent | 7dcbebc04da8117b777182439caa46424c3ee2a0 [diff] |
service worker: off-main-thread script fetch This CL implements OMT service worker script fetch behind a runtime flag. When the flag is enabled, WebEmbeddedWorkerImpl fetches worker script on the worker thread using WorkerThread::ImportClassicScript(). Global scope initialization is delayed until script is fetched to support pausing and resuming worker for update check. See the following doc for detailed explanations and alternative approaches: https://docs.google.com/document/d/1VqVm-kLS0uOCiuSRYhk5iO-qrXc1Zfqj2SAO0fAXEgo/edit?usp=sharing Bug: 924043 Change-Id: I0d2656224c0ec00ff2630f48e21ad6331e03dd38 Reviewed-on: https://chromium-review.googlesource.com/c/1482101 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#636357}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .