Download on background page forcing minimize

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.

Download on background page forcing minimize

Postby cretz » Wed Aug 16, 2017 12:42 pm

In my CEF browser, when I ctrl+click a link, it calls OnOpenURLFromTab with WOD_NEW_BACKGROUND_TAB disposition. I start CEF in a background tab/window and start the download, but before it even gets to OnBeforeDownload it has minimized my parent window. This does not happen if I open in the foreground. I could not easily find in the code where the minimize is happening. Is this by intention and is there a workaround?
cretz
Techie
 
Posts: 34
Joined: Mon Jun 26, 2017 11:41 am

Re: Download on background page forcing minimize

Postby magreenblatt » Wed Aug 16, 2017 12:58 pm

What OS and CEF version? Are you using the CEF C/C++ API directly or some other language wrapper?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Download on background page forcing minimize

Postby cretz » Wed Aug 16, 2017 1:29 pm

Windows, CEF 3.3112.1656.g9ec3e42 64-bit, C++. Code is at https://github.com/cretz/doogie ...the project has grown a little bit and it passes around events like spaghetti which can be a bit tough to follow, but essentially I CreateBrowserSync on a never-shown window w/ the URL given in OnOpenURLFromTab.
cretz
Techie
 
Posts: 34
Joined: Mon Jun 26, 2017 11:41 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 95 guests