commit | b86a5cf3e919f0819589d056493278527771943e | [log] [tgz] |
---|---|---|
author | Yannic Bonenberger <contact@yannic-bonenberger.com> | Wed Jul 25 14:16:13 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jul 25 14:16:13 2018 |
tree | 64e34c280c5abfd17649542cec7823ed41ad81b2 | |
parent | 7beedc820bff35f6f06074d8d9fb66b27f48ca02 [diff] |
[ServiceWorker] Delay update() from workers without controllers This CL delays the execution of update() for an increasing amount of time if the calling worker doesn't control a client. The delay is reset every time a controller is added to the worker, or an event is dispatched. postMessage from service workers, |install| and |activate| don't reset the delay. Bug: 805496 Change-Id: I9c25ba4315ce6a915634ecdf6405db8774c40929 Reviewed-on: https://chromium-review.googlesource.com/900763 Commit-Queue: Yannic Bonenberger <contact@yannic-bonenberger.com> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#577875}
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 .