DescriptionServiceWorker: Queue tasks until the registration proxy becomes ready
In [[Install]] algo. of the latest spec, register() resolves a promise
with a registration object after the worker enters the installation
process. This means the registration needs to set its .installing field
before the register promise is resolved.
But, before this patch, the registration cannot do so before resolving
the register promise because its proxy is set when the registration is
passed to the blink.
This change makes the registration queue notifications of worker version
and 'updatefound'. Once the proxy becomes ready, the registration handles
them.
Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#installation-algorithm
BUG=399533, 406240
TEST=content_unittests --gtest_filter=ServiceWorker*
TEST=run_webkit_tests.py http/tests/serviceworker
Committed: https://crrev.com/850e832d6e311d3ceec0d6da592f52b112c84ec9
Cr-Commit-Position: refs/heads/master@{#292535}
Patch Set 1 : #Patch Set 2 : fix compile errors #
Messages
Total messages: 9 (0 generated)
|