| Index: content/browser/web_contents/web_contents_impl.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
| index 599687097cd9e5c956a3d7b98a82d78bd8ea4cd1..ef3ab7cd988b99c9c9c095426d823aed5bd14d5b 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -2728,6 +2728,26 @@ void WebContentsImpl::RouteMessageEvent(
|
| GetRenderViewHost()->GetRoutingID(), new_params));
|
| }
|
|
|
| +bool WebContentsImpl::ShouldIgnoreNavigation(
|
| + const GURL& url,
|
| + const content::Referrer& referrer,
|
| + bool is_content_initiated) {
|
| + if (!delegate_)
|
| + return false;
|
| +
|
| + GURL validated_url(url);
|
| + RenderViewHostImpl* render_view_host_impl = GetRenderViewHostImpl();
|
| + if (!render_view_host_impl)
|
| + return false;
|
| + render_view_host_impl->FilterURL(
|
| + ChildProcessSecurityPolicyImpl::GetInstance(),
|
| + render_view_host_impl->GetProcess()->GetID(),
|
| + false,
|
| + &validated_url);
|
| + return delegate_->ShouldIgnoreNavigation(
|
| + this, validated_url, referrer, is_content_initiated);
|
| +}
|
| +
|
| void WebContentsImpl::RunJavaScriptMessage(
|
| RenderViewHost* rvh,
|
| const string16& message,
|
|
|