Chromium Code Reviews| 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(); |