Block popups (CEF v3.1180.719)

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.

Block popups (CEF v3.1180.719)

Postby CantStop0708 » Mon Mar 11, 2013 8:00 am

I need to block all popup-windows in CEF v3.1180.719.
I suppose i need to return "true" at OnBeforePopup() function. But when i do this i'm getting OnRenderProcessTerminated() and my main frame loads startupURl.
Why am i getting OnRenderProcessTerminated() and how can i block the startupURl loading on popup attempt?
CantStop0708
Mentor
 
Posts: 60
Joined: Mon Jan 21, 2013 4:10 am

Re: Block popups (CEF v3.1180.719)

Postby magreenblatt » Mon Mar 11, 2013 9:28 am

This was fixed in http://code.google.com/p/chromiumembedd ... ail?id=703. Use a newer version of CEF3 like the version currenty available from the project Downloads page.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Block popups (CEF v3.1180.719)

Postby CantStop0708 » Tue Mar 12, 2013 8:34 am

Is there another way to close popup before in shows on screen?
CantStop0708
Mentor
 
Posts: 60
Joined: Mon Jan 21, 2013 4:10 am

Re: Block popups (CEF v3.1180.719)

Postby magreenblatt » Tue Mar 12, 2013 9:38 am

You can use OnBeforeNavigation but it's also not available in the old CEF3 version that you're using.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 218 guests

cron