ServiceWorker: 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 Review URL: https://codereview.chromium.org/516873002 Cr-Commit-Position: refs/heads/master@{#292535}
Showing
Please register or sign in to comment