Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: content/child/service_worker/web_service_worker_provider_impl.cc

Issue 369013002: ServiceWorker: Support navigator.serviceWorker.installing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/service_worker/web_service_worker_provider_impl.cc
diff --git a/content/child/service_worker/web_service_worker_provider_impl.cc b/content/child/service_worker/web_service_worker_provider_impl.cc
index 16678e9f73c2ff8046ca7802e8d3a87ee14ee6e3..bdc2e67689bca0fe29e9a6aed1a9c14342f311cc 100644
--- a/content/child/service_worker/web_service_worker_provider_impl.cc
+++ b/content/child/service_worker/web_service_worker_provider_impl.cc
@@ -47,6 +47,11 @@ void WebServiceWorkerProviderImpl::setClient(
// for more context)
GetDispatcher()->AddScriptClient(provider_id_, client);
+ if (context_->installing_handle_id() != kInvalidServiceWorkerHandleId) {
+ client->setInstalling(GetDispatcher()->GetServiceWorker(
+ context_->installing()->info(), false));
+ }
+
if (context_->waiting_handle_id() != kInvalidServiceWorkerHandleId) {
client->setWaiting(GetDispatcher()->GetServiceWorker(
context_->waiting()->info(), false));

Powered by Google App Engine
This is Rietveld 408576698