From 106382abe3a15a53d9cc0e0a842e6c517d64acf0 Mon Sep 17 00:00:00 2001 From: "dglazkov@google.com" Date: Thu, 6 Aug 2009 19:53:37 +0000 Subject: Start with a PolicyIgnore when determining navigation action policy in WebFrameLoaderClient. This ensures that we never attempt loading an empty URL and fixes the crash in the layout test, mentioned below. BUG=16754 TEST=LayoutTests/fast/loader/empty-embed-src-attribute.html R=darin Review URL: http://codereview.chromium.org/164078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22642 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webframeloaderclient_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webkit/glue/webframeloaderclient_impl.cc') diff --git a/webkit/glue/webframeloaderclient_impl.cc b/webkit/glue/webframeloaderclient_impl.cc index 2bc9d2c..7455107 100644 --- a/webkit/glue/webframeloaderclient_impl.cc +++ b/webkit/glue/webframeloaderclient_impl.cc @@ -822,7 +822,7 @@ void WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction( const WebCore::NavigationAction& action, const WebCore::ResourceRequest& request, PassRefPtr form_state) { - PolicyAction policy_action = PolicyUse; + PolicyAction policy_action = PolicyIgnore; WebViewImpl* wv = webframe_->GetWebViewImpl(); WebViewDelegate* d = wv->delegate(); -- cgit v1.1