ServiceWorker: Make '.ready' return a promise to be resolved with ServiceWorkerRegistration (2/3)
Potential controllees need to observe version change events to make a ready registration, but, before this patch, those events are sent not to potential controllees but to pages that have the corresponding registration object (to be more precise, pages that have the reference to the registration). After this patch, ServiceWorkerProviderHost sends an IPC message to the corresponding ServiceWorkerProviderContext when the host gets associated with a registration and the provider context retains a reference of the registration so that the potential controllee can observe the version change events. 1) Blink: https://codereview.chromium.org/476043002/ 2) Chromium: THIS PATCH 3) Blink: https://codereview.chromium.org/532653002/ BUG=399533 TEST=content_unittests --gtest_filter=ServiceWorker* TEST=run_webkit_tests.py --debug http/tests/serviceworker/ (with the patch (3)) Review URL: https://codereview.chromium.org/477593007 Cr-Commit-Position: refs/heads/master@{#294147}
Showing
This diff is collapsed.
Please register or sign in to comment