Ignore navigation to invalid URLs (issue #104).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@94 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
e5e560c64a
commit
af70b21705
|
@ -562,6 +562,9 @@ WebNavigationPolicy BrowserWebViewDelegate::decidePolicyForNavigation(
|
||||||
CefRefPtr<CefRequest> req(CefRequest::CreateRequest());
|
CefRefPtr<CefRequest> req(CefRequest::CreateRequest());
|
||||||
|
|
||||||
GURL request_url = request.url();
|
GURL request_url = request.url();
|
||||||
|
if (!request_url.is_valid())
|
||||||
|
return WebKit::WebNavigationPolicyIgnore;
|
||||||
|
|
||||||
req->SetURL(UTF8ToWide(request_url.spec()));
|
req->SetURL(UTF8ToWide(request_url.spec()));
|
||||||
req->SetMethod(
|
req->SetMethod(
|
||||||
UTF8ToWide(webkit_glue::WebStringToStdString(request.httpMethod())));
|
UTF8ToWide(webkit_glue::WebStringToStdString(request.httpMethod())));
|
||||||
|
|
Loading…
Reference in New Issue