Simultaneous popups are cancelled

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.

Simultaneous popups are cancelled

Postby Tiph » Wed May 13, 2015 5:16 am

What steps will reproduce the problem?
In cefclient, load a page that opens multiple popup windows. I set up http://jsfiddle.net/7CDYe/ as an example. Click the "Open many windows" link.
What is the expected output? What do you see instead?
I expect all 4 popups to load. Instead, only 2 load.
What version of the product are you using? On what operating system?
3.1916.1706 on 32bit Windows 7
Please provide any additional information below.
debug.log shows:
WARNING:content_browser_client.cc(841)] Creation of popup window denied because one is already pending.

tested in the last version of cef app test

ticket : https://bitbucket.org/chromiumembedded/ ... -cancelled

any workaround or fix ?

Thank
Tiph
Techie
 
Posts: 13
Joined: Mon Aug 11, 2014 12:01 pm

Re: Simultaneous popups are cancelled

Postby magreenblatt » Wed May 13, 2015 7:59 am

Tiph wrote:any workaround or fix ?

Yes, don't open multiple popup windows at the same time. For example, wait until the previous popup opens before opening the next one.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Simultaneous popups are cancelled

Postby PolesApart » Sun Oct 18, 2015 6:49 am

Any tips on how to do the waiting?
PolesApart
Mentor
 
Posts: 73
Joined: Fri Dec 05, 2014 1:24 pm

Re: Simultaneous popups are cancelled

Postby magreenblatt » Sun Oct 18, 2015 8:22 am

PolesApart wrote:Any tips on how to do the waiting?

You could use document.onload in the popup from JS or OnAfterCreated from C++. What is your use case for multiple simultanious popups?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 46 guests