Compare commits
No commits in common. "5bafd32ee1505b762ab8642e2b5559cac6e6cf80" and "da971da3814944d56477f0c5dcf435b4248aa4a4" have entirely different histories.
5bafd32ee1
...
da971da381
|
@ -147,7 +147,7 @@ class InterceptedRequestHandlerWrapper : public InterceptedRequestHandler {
|
|||
}
|
||||
|
||||
const int32_t id_;
|
||||
raw_ptr<network::ResourceRequest, DisableDanglingPtrDetection> request_;
|
||||
raw_ptr<network::ResourceRequest> request_;
|
||||
const bool request_was_redirected_;
|
||||
OnBeforeRequestResultCallback callback_;
|
||||
CancelRequestCallback cancel_callback_;
|
||||
|
|
|
@ -850,6 +850,12 @@ bool ClientHandler::CanDownload(CefRefPtr<CefBrowser> browser,
|
|||
const CefString& request_method) {
|
||||
CEF_REQUIRE_UI_THREAD();
|
||||
|
||||
if (!with_controls_) {
|
||||
// Block the download.
|
||||
LOG(INFO) << "Blocking download";
|
||||
return false;
|
||||
}
|
||||
|
||||
// Allow the download.
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue