| 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;
|
|
|