mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Mac:
- Restore missing call to OnBeforeClose(). - Fix assertion when closing popup windows. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@264 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -700,6 +700,15 @@ void CefBrowserImpl::UIT_DestroyBrowser()
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
// Call OnBeforeClose() here for platforms that don't support modal dialogs.
|
||||
if (client_.get()) {
|
||||
CefRefPtr<CefLifeSpanHandler> handler = client_->GetLifeSpanHandler();
|
||||
if (handler.get()) {
|
||||
// Notify the handler that the window is about to be closed.
|
||||
handler->OnBeforeClose(this);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
UIT_GetWebViewDelegate()->RevokeDragDrop();
|
||||
|
Reference in New Issue
Block a user