Commit 5463117a authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

DevTools: reset inspector agents before frame view is reset, but after the...

DevTools: reset inspector agents before frame view is reset, but after the rest of the frame interations.

BUG=352702,312393,344623

Review URL: https://codereview.chromium.org/204543004

git-svn-id: svn://svn.chromium.org/blink/trunk@169791 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent cdef895b
......@@ -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))
......
......@@ -1490,9 +1490,6 @@ WebViewImpl* WebViewImpl::fromPage(Page* page)
void WebViewImpl::close()
{
if (m_page) {
// Disable all agents prior to deleting the page.
m_page->inspectorController().inspectedPageDestroyed();
// Initiate shutdown for the entire frameset. This will cause a lot of
// notifications to be sent.
if (m_page->mainFrame())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment