Chromium Code Reviews
DescriptionServiceWorker: SWRegisterJob should manage status of SWVersion
In the current implementation, ServiceWorkerVersion controls its status based
on event notifications (eg. ServiceWorkerVersion::OnInstallEventFinished).
But the spec algorithm requires to manage the status more flexibly during
registration process. For example, the version should be set to INSTALLED
status after associated to the documents because the page should be able to
see '.waiting' on 'onstatechange' event.
Because of this reason the register job should manage the status of the version.
(Spec) https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html
BUG=379012
TEST=content_unittest --gtest_filter=ServiceWorker*
TEST=run_webkit_tests.py http/tests/serviceworker/waiting.html
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281675
Patch Set 1 : #
Total comments: 5
Patch Set 2 : fix tests #
Total comments: 12
Patch Set 3 : fix for comments #Patch Set 4 : fix ServiceWorkerVersionBrowserTest #
Total comments: 13
Patch Set 5 : revive and update the test #
Total comments: 1
Patch Set 6 : rebase #Messages
Total messages: 20 (0 generated)
|