diff --git a/libcef/browser_webview_delegate.cc b/libcef/browser_webview_delegate.cc index 409346c5d..aa6729d78 100644 --- a/libcef/browser_webview_delegate.cc +++ b/libcef/browser_webview_delegate.cc @@ -560,8 +560,11 @@ WebNavigationPolicy BrowserWebViewDelegate::decidePolicyForNavigation( if(handler.get()) { // Gather browse request information CefRefPtr req(CefRequest::CreateRequest()); - + GURL request_url = request.url(); + if (!request_url.is_valid()) + return WebKit::WebNavigationPolicyIgnore; + req->SetURL(UTF8ToWide(request_url.spec())); req->SetMethod( UTF8ToWide(webkit_glue::WebStringToStdString(request.httpMethod())));