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

Unified Diff: Source/core/inspector/WorkerInspectorController.cpp

Issue 1164423007: Make inspector-protocol/debugger/debugger-step-into-dedicated-worker.html not timeout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/core/inspector/WorkerInspectorController.h ('k') | Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/WorkerInspectorController.cpp
diff --git a/Source/core/inspector/WorkerInspectorController.cpp b/Source/core/inspector/WorkerInspectorController.cpp
index 557413a1f89cfc6cebf6c08c3fa131dafd2040ae..c0ce4f3241c603e3026a353e73e720dc558cb36e 100644
--- a/Source/core/inspector/WorkerInspectorController.cpp
+++ b/Source/core/inspector/WorkerInspectorController.cpp
@@ -125,6 +125,7 @@ WorkerInspectorController::WorkerInspectorController(WorkerGlobalScope* workerGl
, m_workerThreadDebugger(WorkerThreadDebugger::create(workerGlobalScope))
, m_agents(m_instrumentingAgents.get(), m_state.get())
, m_inspectorTaskRunner(adoptPtr(new InspectorTaskRunner(v8::Isolate::GetCurrent())))
+ , m_beforeInitlizedScope(adoptPtr(new InspectorTaskRunner::IgnoreInterruptsScope(m_inspectorTaskRunner.get())))
, m_paused(false)
{
OwnPtrWillBeRawPtr<WorkerRuntimeAgent> workerRuntimeAgent = WorkerRuntimeAgent::create(m_injectedScriptManager.get(), m_workerThreadDebugger->debugger(), workerGlobalScope, this);
@@ -221,6 +222,13 @@ bool WorkerInspectorController::isRunRequired()
return m_paused;
}
+void WorkerInspectorController::workerContextInitialized(bool shouldPauseOnStart)
+{
+ m_beforeInitlizedScope.clear();
+ if (shouldPauseOnStart)
+ pauseOnStart();
+}
+
void WorkerInspectorController::pauseOnStart()
{
m_paused = true;
« no previous file with comments | « Source/core/inspector/WorkerInspectorController.h ('k') | Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698