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

Unified Diff: Source/core/frame/LocalDOMWindow.cpp

Issue 401523004: Break on window close when the inspector is open (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use InspectorTest.startDebuggerTest Created 6 years, 5 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/frame/LocalDOMWindow.cpp
diff --git a/Source/core/frame/LocalDOMWindow.cpp b/Source/core/frame/LocalDOMWindow.cpp
index ed9a8f2e6811923007d013922095cb82826c7984..4d066b5f4e08001f09de5a790cf07814b9fe9720 100644
--- a/Source/core/frame/LocalDOMWindow.cpp
+++ b/Source/core/frame/LocalDOMWindow.cpp
@@ -981,6 +981,8 @@ void LocalDOMWindow::close(ExecutionContext* context)
if (!m_frame->loader().shouldClose())
return;
+ InspectorInstrumentation::willCloseWindow(context);
+
page->chrome().closeWindowSoon();
}

Powered by Google App Engine
This is Rietveld 408576698