The serviceworker update algo has to wait until documents close prior to performing...
commit72dcdec9774f490bdc3918b56d22ca121f03facd
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 29 Jul 2014 09:34:43 +0000 (29 09:34 +0000)
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 29 Jul 2014 09:34:43 +0000 (29 09:34 +0000)
tree24a246c43a6a0de531a53384eb959ad4afedba00
parented1b7924f642de3375a61c579957f777265dad31
The serviceworker update algo has to wait until documents close prior to performing its final activation step. If the browser exits prior to that happening, the algo has to be completed in the next browsing session. This CL adds logic that will trigger the deferred activation when first navigating into a registered scope.

This CL also adds logic to defer navigations into a registered scope while ACTIVATING and not yet ACTIVATED.

BUG=371671

Review URL: https://codereview.chromium.org/413853002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286146 0039d316-1c4b-4281-b951-d872f2087c98
12 files changed:
content/browser/service_worker/service_worker_controllee_request_handler.cc
content/browser/service_worker/service_worker_controllee_request_handler.h
content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc [new file with mode: 0644]
content/browser/service_worker/service_worker_register_job.cc
content/browser/service_worker/service_worker_register_job.h
content/browser/service_worker/service_worker_registration.cc
content/browser/service_worker/service_worker_registration.h
content/browser/service_worker/service_worker_storage.cc
content/browser/service_worker/service_worker_storage.h
content/browser/service_worker/service_worker_version.cc
content/browser/service_worker/service_worker_version.h
content/content_tests.gypi