mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add a new CefLifeSpanHandler::CanCreatePopup() method for canceling the creation of popup windows (issue #816).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1085 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -1520,12 +1520,10 @@ bool CefBrowserHostImpl::ShouldCreateWebContents(
|
||||
CefRefPtr<CefLifeSpanHandler> handler = client_->GetLifeSpanHandler();
|
||||
// Give the handler an opportunity to modify window attributes, handler,
|
||||
// or cancel the window creation.
|
||||
if (handler.get() &&
|
||||
handler->OnBeforePopup(this, features, pending_window_info_,
|
||||
target_url.spec(), pending_client_,
|
||||
pending_settings_)) {
|
||||
pending_client_ = NULL;
|
||||
return false;
|
||||
if (handler.get()) {
|
||||
handler->OnBeforePopup(this, features, pending_window_info_,
|
||||
target_url.spec(), frame_name,
|
||||
pending_client_, pending_settings_);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user