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

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

Issue 473923002: DevTools: Prevent a debugger pause while executing js code in releaseObjectGroup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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: Source/core/inspector/InspectorRuntimeAgent.cpp
diff --git a/Source/core/inspector/InspectorRuntimeAgent.cpp b/Source/core/inspector/InspectorRuntimeAgent.cpp
index eb3bdca51e988e5f6fe010e0796467fb0d186217..9c500a24310de3b513e399b1e8e238095e0ded3e 100644
--- a/Source/core/inspector/InspectorRuntimeAgent.cpp
+++ b/Source/core/inspector/InspectorRuntimeAgent.cpp
@@ -147,7 +147,12 @@ void InspectorRuntimeAgent::releaseObject(ErrorString*, const String& objectId)
void InspectorRuntimeAgent::releaseObjectGroup(ErrorString*, const String& objectGroup)
{
+ bool pausingOnNextStatement = m_scriptDebugServer->pausingOnNextStatement();
+ if (pausingOnNextStatement)
+ m_scriptDebugServer->setPauseOnNextStatement(false);
m_injectedScriptManager->releaseObjectGroup(objectGroup);
+ if (pausingOnNextStatement)
+ m_scriptDebugServer->setPauseOnNextStatement(true);
}
void InspectorRuntimeAgent::run(ErrorString*)

Powered by Google App Engine
This is Rietveld 408576698