mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
cefclient: Allow download with --hide-controls (fixes #3742)
This commit is contained in:
@ -822,12 +822,6 @@ bool ClientHandler::CanDownload(CefRefPtr<CefBrowser> browser,
|
|||||||
const CefString& request_method) {
|
const CefString& request_method) {
|
||||||
CEF_REQUIRE_UI_THREAD();
|
CEF_REQUIRE_UI_THREAD();
|
||||||
|
|
||||||
if (!with_controls_) {
|
|
||||||
// Block the download.
|
|
||||||
LOG(INFO) << "Blocking download";
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Allow the download.
|
// Allow the download.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user