| Index: Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| diff --git a/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| index 0ceb4d3435f70b1190c8cb8ca3f524ec9a8c8a74..706a01ecd433875cad89930765d0320481010217 100644
|
| --- a/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| +++ b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
|
| @@ -71,8 +71,10 @@ void ServiceWorkerGlobalScopeProxy::updateInspectorStateCookie(const String& mes
|
| m_client->saveDevToolsAgentState(message);
|
| }
|
|
|
| -void ServiceWorkerGlobalScopeProxy::workerGlobalScopeStarted()
|
| +void ServiceWorkerGlobalScopeProxy::workerGlobalScopeStarted(WorkerGlobalScope* workerGlobalScope)
|
| {
|
| + ASSERT(!m_workerGlobalScope);
|
| + m_workerGlobalScope = workerGlobalScope;
|
| m_client->workerContextStarted(this);
|
| }
|
|
|
| @@ -83,6 +85,7 @@ void ServiceWorkerGlobalScopeProxy::workerGlobalScopeClosed()
|
|
|
| void ServiceWorkerGlobalScopeProxy::workerGlobalScopeDestroyed()
|
| {
|
| + m_workerGlobalScope = 0;
|
| m_client->workerContextDestroyed();
|
| }
|
|
|
| @@ -90,6 +93,7 @@ ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
|
| : m_embeddedWorker(embeddedWorker)
|
| , m_executionContext(executionContext)
|
| , m_client(client)
|
| + , m_workerGlobalScope(0)
|
| {
|
| ASSERT(m_client);
|
| }
|
|
|