Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp |
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
index 5f4587367498f803ae4cd9676ccfb64ae3951637..8a40549bc18ed8d41500d871128d25bd9600335f 100644 |
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
@@ -408,7 +408,7 @@ bool ChromeClientImpl::openBeforeUnloadConfirmPanelDelegate(LocalFrame* frame, c |
void ChromeClientImpl::closeWindowSoon() |
{ |
// Make sure this Page can no longer be found by JS. |
- Page::ordinaryPages().remove(m_webView->page()); |
+ m_webView->page()->willBeClosed(); |
// Make sure that all loading is stopped. Ensures that JS stops executing! |
m_webView->mainFrame()->stopLoading(); |