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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2616513002: Make sure pages that are closing but not yet closed are still suspended. (Closed)
Patch Set: Created 3 years, 12 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: 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 fa743d87d17bf4dd41fbd7376a6a0845ac3b8c7f..4cf0fe7f40534c065999f18f36a9572e4a91f9e9 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -477,12 +477,6 @@ bool ChromeClientImpl::openBeforeUnloadConfirmPanelDelegate(LocalFrame* frame,
}
void ChromeClientImpl::closeWindowSoon() {
- // Make sure this Page can no longer be found by JS.
- m_webView->page()->willBeClosed();
-
- // Make sure that all loading is stopped. Ensures that JS stops executing!
- m_webView->mainFrame()->stopLoading();
-
if (m_webView->client())
m_webView->client()->closeWidgetSoon();
}

Powered by Google App Engine
This is Rietveld 408576698