OnBeforeBrowser not raised for about:blank

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.

OnBeforeBrowser not raised for about:blank

Postby arvelius » Tue May 15, 2018 3:37 am

When clicking on a link like
<a href="about:blank">link</a>
the OnBeforeBrowse will not be called, so it is not possible to cancel the navigation to an empty page.
I believe that it's a bug, not a feature :)
arvelius
Techie
 
Posts: 46
Joined: Wed Sep 17, 2014 8:37 am

Re: OnBeforeBrowser not raised for about:blank

Postby Czarek » Tue May 15, 2018 7:08 am

How about returning RV_CANCEL in OnBeforeResourceLoad?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: OnBeforeBrowser not raised for about:blank

Postby arvelius » Tue May 15, 2018 7:13 am

OnBeforeResourceLoad is not called either :x
arvelius
Techie
 
Posts: 46
Joined: Wed Sep 17, 2014 8:37 am

Re: OnBeforeBrowser not raised for about:blank

Postby Czarek » Tue May 15, 2018 7:57 am

Have you also tried OnOpenURLFromTab?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: OnBeforeBrowser not raised for about:blank

Postby arvelius » Tue May 15, 2018 8:07 am

didn't know that method, but I tried it right now, and without luck
arvelius
Techie
 
Posts: 46
Joined: Wed Sep 17, 2014 8:37 am

Re: OnBeforeBrowser not raised for about:blank

Postby Czarek » Fri May 25, 2018 9:40 am

Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 74 guests