Skip to content

Commit

Permalink
cefclient: Allow download with --hide-controls (fixes #3742)
Browse files Browse the repository at this point in the history
  • Loading branch information
magreenblatt committed Jul 17, 2024
1 parent 69fbadd commit cbbca05
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/cefclient/browser/client_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -822,12 +822,6 @@ 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;
}
Expand Down

0 comments on commit cbbca05

Please sign in to comment.