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

Unified Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp

Issue 1692813002: Revert of [DevTools] Remove isRunRequired, replace autoConnectToWorkers with setWaitForDebuggerOnStart. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
index 094a5123e4cadf8db9ed1446ae3c26e6ff909d10..303b19e23f291aed8f8284c243a84ac51b70e6dc 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -330,6 +330,10 @@
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();
@@ -342,7 +346,6 @@
document->initContentSecurityPolicy(m_mainScriptLoader->releaseContentSecurityPolicy());
KURL scriptURL = m_mainScriptLoader->url();
- WorkerThreadStartMode startMode = m_workerInspectorProxy->workerStartMode(document);
OwnPtr<WorkerThreadStartupData> startupData = WorkerThreadStartupData::create(
scriptURL,
m_workerStartData.userAgent,
« no previous file with comments | « third_party/WebKit/Source/devtools/protocol.json ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698