Index: Source/WebCore/inspector/InspectorWorkerAgent.cpp |
=================================================================== |
--- Source/WebCore/inspector/InspectorWorkerAgent.cpp (revision 134366) |
+++ Source/WebCore/inspector/InspectorWorkerAgent.cpp (working copy) |
@@ -63,6 +63,7 @@ |
} |
virtual ~WorkerFrontendChannel() |
{ |
+ disconnectFromWorkerContext(); |
} |
int id() const { return m_id; } |
@@ -136,9 +137,9 @@ |
void InspectorWorkerAgent::clearFrontend() |
{ |
+ m_state->setBoolean(WorkerAgentState::autoconnectToWorkers, false); |
+ disable(0); |
m_inspectorFrontend = 0; |
- m_state->setBoolean(WorkerAgentState::autoconnectToWorkers, false); |
- destroyWorkerFrontendChannels(); |
} |
void InspectorWorkerAgent::enable(ErrorString*) |