on Cefsharp (cef3) how to catch the url before navigating to it

1,144 views
Skip to first unread message

Jerry Ma

unread,
May 8, 2014, 1:48:24 PM5/8/14
to cefs...@googlegroups.com

Hi All,

I'm new to CefSharp.  On a web page loaded, when user clicks a link embedded, to microsoft IE control, I was able to monitor "Navigating(object sender, WebBrowserNavigatingEventArgs e)".  Then I can decide if I want the navigation continue.  How can I do that with Cefsharp 3?

I assumed "OnBeforeBrowse" was for it, but it's commented out.

        // TODO: Check how we can support this with CEF3.
        /*
        bool ClientAdapter::OnBeforeBrowse(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, CefRefPtr<CefRequest> request, NavType navType, bool isRedirect)
        {


Thanks,

Jerry

Jørn Hansen

unread,
May 23, 2014, 2:54:55 AM5/23/14
to cefs...@googlegroups.com
Now Implemented in the 'master' branch here: https://github.com/cefsharp/CefSharp/pull/354

Thanks for reporting as an issue with good description and for helping verify it Jerry!

Best regards,
JornH
Reply all
Reply to author
Forward
0 new messages