| Index: third_party/WebKit/Source/web/WebPagePopupImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
|
| index 44e0710891781a0ba00d0fe86aa91a3d015cfcef..74dce75d81f37924a8a8d4aa38c8674d1dddcc91 100644
|
| --- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
|
| @@ -489,10 +489,14 @@
|
|
|
| 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();
|
| }
|
|
|
|
|