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

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

Issue 1307313005: DevTools: fix crash in ClientMessageLoopAdapter::run (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/MainThreadDebugger.cpp
diff --git a/Source/core/inspector/MainThreadDebugger.cpp b/Source/core/inspector/MainThreadDebugger.cpp
index de83a3ecac8bc236b833a6dab867ac92e2d06214..ce80c771538cea3f3400c21c732bede2a2f96bf7 100644
--- a/Source/core/inspector/MainThreadDebugger.cpp
+++ b/Source/core/inspector/MainThreadDebugger.cpp
@@ -124,6 +124,9 @@ void MainThreadDebugger::interruptMainThreadAndRun(PassOwnPtr<InspectorTaskRunne
void MainThreadDebugger::runMessageLoopOnPause(v8::Local<v8::Context> context)
{
LocalFrame* frame = retrieveFrameWithGlobalObjectCheck(context);
+ // Do not pause in Context of detached frame.
+ if (!frame)
+ return;
LocalFrame* pausedFrame = frame->localFrameRoot();
// Wait for continue or step command.
m_clientMessageLoop->run(pausedFrame);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698