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

Unified Diff: Source/core/page/Page.cpp

Issue 204543004: DevTools: reset inspector agents before frame view is reset, but after the rest of the frame intera… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index 779520934bccf49c74207129587e1d461fd68e45..760493dc20d6be34330e52706b6246498e9d85a6 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -152,6 +152,9 @@ Page::Page(PageClients& pageClients)
Page::~Page()
{
+ // Disable all agents prior to resetting the frame view.
+ m_inspectorController->inspectedPageDestroyed();
+
m_mainFrame->setView(nullptr);
allPages().remove(this);
if (ordinaryPages().contains(this))
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698