DescriptionServiceWorker: Update the install sequence as per the latest spec
This change...
(a) updates the install sequence based on the latest spec. Before this
patch, the installing version is set after resolving the register promise.
After this patch, the installing version is set before resolving the promise.
(b) fills registration's version attributes before resolving the register
promise. This should fix the problem mentioned c#5 in the issue and should
absorb the change of the timing to set the installing version due to (a).
(c) adds a separate IPC for updatefound event to adjust the timing to fire
the event. Before this patch, the event shares SetVersionAttributes message.
[1] Blink: https://codereview.chromium.org/524193003/
[2] Chromium: THIS PATCH
[3] Blink: https://codereview.chromium.org/517223002/
Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#installation-algorithm
BUG=406240
TEST=content_unittests --gtest_filter=ServiceWorker*
TEST=run_webkit_tests.py http/tests/serviceworker/
Committed: https://crrev.com/8148543da0da6062980504f2851afb69e4bdaa4f
Cr-Commit-Position: refs/heads/master@{#292838}
Patch Set 1 : #
Total comments: 4
Patch Set 2 : address comments and update tests #
Total comments: 5
Patch Set 3 : comment fix (+rebase) #Messages
Total messages: 21 (1 generated)
|