Compare commits

..

No commits in common. "5bafd32ee1505b762ab8642e2b5559cac6e6cf80" and "da971da3814944d56477f0c5dcf435b4248aa4a4" have entirely different histories.

2 changed files with 7 additions and 1 deletions

View File

@ -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_;

View File

@ -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;
}