Index: third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp |
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp |
index 349029cda29ec9fd121bbad77f5bb61fd8893192..7fc496960bebaa06b2fff17c0e1f9429162ae43d 100644 |
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp |
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp |
@@ -98,7 +98,10 @@ |
dispatchEvent(Event::createCancelable(EventTypeNames::error)); |
} else { |
ASSERT(m_contextProxy); |
- m_contextProxy->startWorkerGlobalScope(m_scriptLoader->url(), executionContext()->userAgent(), m_scriptLoader->script()); |
+ WorkerThreadStartMode startMode = DontPauseWorkerGlobalScopeOnStart; |
+ if (InspectorInstrumentation::shouldPauseDedicatedWorkerOnStart(executionContext())) |
+ startMode = PauseWorkerGlobalScopeOnStart; |
+ m_contextProxy->startWorkerGlobalScope(m_scriptLoader->url(), executionContext()->userAgent(), m_scriptLoader->script(), startMode); |
InspectorInstrumentation::scriptImported(executionContext(), m_scriptLoader->identifier(), m_scriptLoader->script()); |
} |
m_contentSecurityPolicy = m_scriptLoader->releaseContentSecurityPolicy(); |