diff options
author | dglazkov@google.com <dglazkov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-06 19:53:37 +0000 |
---|---|---|
committer | dglazkov@google.com <dglazkov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-06 19:53:37 +0000 |
commit | 106382abe3a15a53d9cc0e0a842e6c517d64acf0 (patch) | |
tree | 04c96c6131c68f6b60782f3f88e576fe8bff2dec /webkit/glue/webframeloaderclient_impl.cc | |
parent | ae0991b41289778be0c2369e7c67f836fa960b4f (diff) | |
download | chromium_src-106382abe3a15a53d9cc0e0a842e6c517d64acf0.zip chromium_src-106382abe3a15a53d9cc0e0a842e6c517d64acf0.tar.gz chromium_src-106382abe3a15a53d9cc0e0a842e6c517d64acf0.tar.bz2 |
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
Diffstat (limited to 'webkit/glue/webframeloaderclient_impl.cc')
-rw-r--r-- | webkit/glue/webframeloaderclient_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<WebCore::FormState> form_state) { - PolicyAction policy_action = PolicyUse; + PolicyAction policy_action = PolicyIgnore; WebViewImpl* wv = webframe_->GetWebViewImpl(); WebViewDelegate* d = wv->delegate(); |