commit | 9ddecf04a93bdfdc24464e460b61515a3e349052 | [log] [tgz] |
---|---|---|
author | Matt Falkenhagen <falken@chromium.org> | Tue Nov 07 00:38:33 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Nov 07 00:38:33 2017 |
tree | 93e5979d0c62d15d6b142cc9c2edfa934bc38879 | |
parent | 41539671102ef65148f07d72ddb89b3be24ec787 [diff] |
service worker: Upstream and cleanup waiting.https.html. The WPT and Chromium versions diverged. The WPT version was testing something looser than today's spec requires. In today's spec, the Install algorithm has steps in this order: - Run the Update Registration State algorithm passing registration, "waiting" and registration’s installing worker as the arguments. - Run the Update Registration State algorithm passing registration, "installing" and null as the arguments. - Run the Update Worker State algorithm passing registration’s waiting worker and installed as the arguments. - Wait for all the tasks queued by Update Worker State invoked in this algorithm have executed. So when the worker reaches 'installed' state, registration.installing should be null and registration.waiting should be set. Furthermore, activation has not yet occurred, so registration.active should be null. Change the test to assert this and also modernize it by making it a promise_test; and remove the Chromium version. Bug: 379012, 688116 Change-Id: I6a51b3dfb014658eba7734f26b89cb158d070541 Reviewed-on: https://chromium-review.googlesource.com/755394 Reviewed-by: Marijn Kruisselbrink <mek@chromium.org> Commit-Queue: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#514323}
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 .