summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-02 23:08:16 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-02 23:08:16 +0000
commit2fc22d1b31c3ec41393370a35ee76ba54e514bd1 (patch)
tree58b9e14a1a64911bc7afc763db07b6615b88210f /chrome/renderer
parente6809af7046787a3556ae997bddbbd6d9847a957 (diff)
downloadchromium_src-2fc22d1b31c3ec41393370a35ee76ba54e514bd1.zip
chromium_src-2fc22d1b31c3ec41393370a35ee76ba54e514bd1.tar.gz
chromium_src-2fc22d1b31c3ec41393370a35ee76ba54e514bd1.tar.bz2
Add support for displaying the repost warning data in ChromeFrame when the user attempts
to reload a ChromeFrame page which was received as a result of a top level form post. We should also not be treating form resubmits as top level navigations being routed back to the host browser as this nullifies the effect of the form post. Fixes portions of bug http://code.google.com/p/chromium/issues/detail?id=64901 BUG=64901 TEST=Navigate to the url mentioned in the bug in ChromeFrame and on posting the form hit F5. This should put up a confirmation dialog and on accepting it should display the expected values on the page. Review URL: http://codereview.chromium.org/5530001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68097 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_view.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index c900173..d3fe814 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -5621,9 +5621,10 @@ bool RenderView::IsNonLocalTopLevelNavigation(
if (!url.SchemeIs("http") && !url.SchemeIs("https"))
return false;
- // Not interested in reloads.
+ // Not interested in reloads/form submits/resubmits/back forward navigations.
if (type != WebKit::WebNavigationTypeReload &&
type != WebKit::WebNavigationTypeFormSubmitted &&
+ type != WebKit::WebNavigationTypeFormResubmitted &&
type != WebKit::WebNavigationTypeBackForward) {
// The opener relationship between the new window and the parent allows the
// new window to script the parent and vice versa. This is not allowed if