OnBeforeNavigation not called when clicking link in PDF

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.

OnBeforeNavigation not called when clicking link in PDF

Postby emerick » Wed Dec 13, 2017 11:06 am

When I click a link in CEF, I'm used to receiving a call to OnBeforeNavigation followed by a call to OnBeforeBrowse. However, it seems that clicking on a link in a PDF only calls OnBeforeBrowse. Is this a bug? I'm asking because I've always made my navigation decision in OnBeforeNavigation, but I'll now have to do it in both places. This difference seems a bit inconsistent to me, but maybe there's a reason for it. This is happening with version 62.0.3202.94.
emerick
Expert
 
Posts: 154
Joined: Sun Feb 21, 2010 7:57 pm
Location: Belmont, MA

Re: OnBeforeNavigation not called when clicking link in PDF

Postby magreenblatt » Wed Dec 13, 2017 11:24 am

PDFs are a special case, so the lack of OnBeforeNavigation calls is expected. The OnBeforeNavigation method will also be deleted as part of https://bitbucket.org/chromiumembedded/cef/issues/2290 and OnBeforeBrowse will then be the only method called.
magreenblatt
Site Admin
 
Posts: 12384
Joined: Fri May 29, 2009 6:57 pm

Re: OnBeforeNavigation not called when clicking link in PDF

Postby emerick » Wed Dec 13, 2017 11:28 am

Ah OK, that makes sense. Thanks for the explanation, Marshall.
emerick
Expert
 
Posts: 154
Joined: Sun Feb 21, 2010 7:57 pm
Location: Belmont, MA


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 43 guests