I am new to CEF.
I took a clean project, assembled it according to the instructions
https://bitbucket.org/chromiumembedded/ ... ckStart.md.
I got an error when going to the
https://api.whatsapp.com/send?phone=66666666 site
Found cef_request_handler.h file, changed OnBeforeBrowse method response to ture
- Code: Select all
virtual bool OnBeforeBrowse(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefRequest> request,
bool user_gesture,
bool is_redirect) {
return true;
}
Rebuilt the project, the error remained
Found cef_extension_handler.h file, changed OnBeforeBrowse method
- Code: Select all
virtual bool OnBeforeBrowser(CefRefPtr<CefExtension> extension,
CefRefPtr<CefBrowser> browser,
CefRefPtr<CefBrowser> active_browser,
int index,
const CefString& url,
bool active,
CefWindowInfo& windowInfo,
CefRefPtr<CefClient>& client,
CefBrowserSettings& settings) {
if (request.Url.StartsWith("whatsapp:"))
{
return true;
}
return base.OnBeforeBrowse(chromiumWebBrowser, browser, frame, request, userGesture, isRedirect);
}
Rebuilt the project, the error remained
What am I doing wrong ?