My question is about verificatiion SSL certificates by a custom callback. CefRequestHandler allows CEF users to do it and recently this feature has been improved. Now callback receives CefSSLInfo structure and is able to compare fingerprints, for example. I tried to implement this in my application and it seemed working but later I noticed that each document had not loaded some random resources. These resources were marked as canceled in DevTools. I've found the source of this error: https://bitbucket.org/chromiumembedded/cef/src/a82110b31ec719177c4716bcd3e00c41fa99fb43/libcef/browser/content_browser_client.cc?at=master#cl-739
The callback is called only for the main frame. Marshall could you explain this behavior please? Why can't the if block be replaced with a single line:
- Code: Select all
*result = content::CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL;