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

Unified Diff: Source/web/ChromeClientImpl.cpp

Issue 1176843006: Move window.close implementation to DOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and move backForwardHistory to FrameClient. Created 5 years, 6 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: Source/web/ChromeClientImpl.cpp
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp
index bfb4806685ed4401ed5d57bd63d07407fd239e1b..d135933c64d239940bbf7a7ff6e88354ebf94ec8 100644
--- a/Source/web/ChromeClientImpl.cpp
+++ b/Source/web/ChromeClientImpl.cpp
@@ -400,7 +400,8 @@ void ChromeClientImpl::closeWindowSoon()
Page::ordinaryPages().remove(m_webView->page());
// Make sure that all loading is stopped. Ensures that JS stops executing!
- m_webView->mainFrame()->stopLoading();
+ if (m_webView->mainFrame()->isWebLocalFrame())
dcheng 2015/06/17 23:39:50 TODO this?
nasko 2015/06/19 13:23:22 Actually, the method is available on WebRemoteFram
+ m_webView->mainFrame()->stopLoading();
if (m_webView->client())
m_webView->client()->closeWidgetSoon();

Powered by Google App Engine
This is Rietveld 408576698