| Index: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| index 54d885ab1a5db9943de217e2a1794dca198d1794..aac5fb5a75d7b3201f79ba9c974b17652da8e130 100644
|
| --- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| @@ -322,6 +322,9 @@
|
| }
|
|
|
| Document* document = m_mainFrame->frame()->document();
|
| + WorkerThreadStartMode startMode = DontPauseWorkerGlobalScopeOnStart;
|
| + if (InspectorInstrumentation::shouldPauseDedicatedWorkerOnStart(document))
|
| + startMode = PauseWorkerGlobalScopeOnStart;
|
|
|
| // FIXME: this document's origin is pristine and without any extra privileges. (crbug.com/254993)
|
| SecurityOrigin* starterOrigin = document->securityOrigin();
|
| @@ -331,7 +334,6 @@
|
| WebSecurityOrigin webSecurityOrigin(m_loadingDocument->securityOrigin());
|
| provideContentSettingsClientToWorker(workerClients.get(), adoptPtr(m_client->createWorkerContentSettingsClientProxy(webSecurityOrigin)));
|
| RefPtrWillBeRawPtr<ContentSecurityPolicy> contentSecurityPolicy = m_mainScriptLoader->releaseContentSecurityPolicy();
|
| - WorkerThreadStartMode startMode = m_workerInspectorProxy->workerStartMode(document);
|
| OwnPtr<WorkerThreadStartupData> startupData = WorkerThreadStartupData::create(
|
| m_url,
|
| m_loadingDocument->userAgent(),
|
|
|