diff --git a/browser/native_window.cc b/browser/native_window.cc index fe0b5d273fa6..71a2a060c95f 100644 --- a/browser/native_window.cc +++ b/browser/native_window.cc @@ -151,8 +151,10 @@ void NativeWindow::CloseWebContents() { FOR_EACH_OBSERVER(NativeWindowObserver, observers_, WillCloseWindow(&prevent_default)); - if (prevent_default) + if (prevent_default) { + WindowList::WindowCloseCancelled(this); return; + } content::WebContents* web_contents(GetWebContents());