Disable Download Popup - Chrome Runtime Style - CEF 135

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Disable Download Popup - Chrome Runtime Style - CEF 135

Postby habuleil » Mon Jun 23, 2025 8:14 am

Hi,

Recently I've moved from using Alloy runtime style to Chrome runtime style on 135.0.22+g442c600+chromium-135.0.7049.115.

With this change, I noticed that the download bubble is now displayed upon downloading an item, whether it is with a "Save as" dialog or without.
I didn't face this behavior before with Alloy runtime style.
I implement CefDownloadHandler::OnBeforeDownload to manage downloads, calling "callback->Continue" to carry on the download whether with false or true show_dialog.

My question is: Is there any CEF API to control the download bubble feature in CEF135+?
I want to disable it. I've tried the following, but non worked - I still get the download bubble/tab upon downloading.
Command line: disable-features - DownloadBubble.
Context preference: download_bubble_enabled - false.

Regards,
habuleil
Newbie
 
Posts: 7
Joined: Mon Jun 05, 2023 4:30 am

Re: Disable Download Popup - Chrome Runtime Style - CEF 135

Postby magreenblatt » Mon Jun 23, 2025 1:21 pm

See viewtopic.php?f=6&t=20286 for a partial(?) fix
magreenblatt
Site Admin
 
Posts: 13059
Joined: Fri May 29, 2009 6:57 pm

Re: Disable Download Popup - Chrome Runtime Style - CEF 135

Postby habuleil » Tue Jun 24, 2025 5:28 am

Hi magreenblatt,

this fix indeed solves my issue.

You could use it right before creating the browser:
using CefRequestContext::GetGlobalContext(), and passing it to "CefBrowserHost::CreateBrowser".

Or at OnAfterCreated just as in the attached example by you.

It didn't work for me before because I was misusing the API as needed.

Thanks!
habuleil
Newbie
 
Posts: 7
Joined: Mon Jun 05, 2023 4:30 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 69 guests