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)) |