diff options
-rw-r--r-- | third_party/WebKit/Source/web/WebPagePopupImpl.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp index 74dce75..44e0710 100644 --- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp +++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp @@ -489,14 +489,10 @@ void WebPagePopupImpl::setFocus(bool enable) void WebPagePopupImpl::close() { - m_closing = true; - // In case closePopup() was not called. - if (m_page) { - destroyPage(); - m_popupClient->didClosePopup(); - m_webView->cleanupPagePopup(); - } m_widgetClient = 0; + // In case closePopup() was not called. + if (m_page) + cancel(); deref(); } |