mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
chrome: Add CefJSDialogHandler support (fixes #3702)
This commit is contained in:
committed by
Marshall Greenblatt
parent
fd7444c7a4
commit
e4bb51f6f6
@@ -287,6 +287,10 @@ void CefBrowserHostBase::DestroyWebContents(
|
||||
devtools_protocol_manager_.reset();
|
||||
devtools_window_runner_.reset();
|
||||
context_menu_observer_ = nullptr;
|
||||
if (javascript_dialog_manager_) {
|
||||
javascript_dialog_manager_->Destroy();
|
||||
javascript_dialog_manager_.reset();
|
||||
}
|
||||
|
||||
browser_info_->WebContentsDestroyed();
|
||||
platform_delegate_->WebContentsDestroyed(web_contents);
|
||||
@@ -1283,6 +1287,15 @@ void CefBrowserHostBase::SelectFileListenerDestroyed(
|
||||
}
|
||||
}
|
||||
|
||||
content::JavaScriptDialogManager*
|
||||
CefBrowserHostBase::GetJavaScriptDialogManager() {
|
||||
if (!javascript_dialog_manager_) {
|
||||
javascript_dialog_manager_ =
|
||||
std::make_unique<CefJavaScriptDialogManager>(this);
|
||||
}
|
||||
return javascript_dialog_manager_.get();
|
||||
}
|
||||
|
||||
bool CefBrowserHostBase::MaybeAllowNavigation(
|
||||
content::RenderFrameHost* opener,
|
||||
const content::OpenURLParams& params) {
|
||||
|
Reference in New Issue
Block a user