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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerContainer.cpp

Issue 213223005: Use the Navigator's frame in navigator.serviceWorker and associated container. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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: Source/modules/serviceworkers/ServiceWorkerContainer.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerContainer.cpp b/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
index cd58f06fe3adf70718e9dde2ea476913945b5891..64fcd755b72c7d0298f80ec5b3895242a362f8e2 100644
--- a/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
@@ -119,6 +119,9 @@ ServiceWorkerContainer::ServiceWorkerContainer(ExecutionContext* executionContex
{
ScriptWrappable::init(this);
+ if (!executionContext)
+ return;
+
if (ServiceWorkerContainerClient* client = ServiceWorkerContainerClient::from(executionContext)) {
m_provider = client->provider();
if (m_provider)
« no previous file with comments | « Source/modules/serviceworkers/NavigatorServiceWorker.idl ('k') | Source/modules/serviceworkers/ServiceWorkerContainerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698