Make navigator.serviceWorker.ready resolve with the controller.
The specification for ready is here: https://github.com/slightlyoff/ServiceWorker/issues/223 ready is a convenience that lets the page talk to an installed ServiceWorker, without having to track the details of whether that Service Worker is controlling the page, or merely installed but waiting for the page to reload. This implements the trivial ready case, where the page is controlled by a Service Worker and ready can produce that one immediately. BUG=363967 Review URL: https://codereview.chromium.org/309233002 git-svn-id: svn://svn.chromium.org/blink/trunk@175486 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment