summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container_win.cc
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/browser/external_tab_container_win.cc
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/browser/external_tab_container_win.cc')
-rw-r--r--chrome/browser/external_tab_container_win.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/external_tab_container_win.cc b/chrome/browser/external_tab_container_win.cc
index f254816..2c2ae78 100644
--- a/chrome/browser/external_tab_container_win.cc
+++ b/chrome/browser/external_tab_container_win.cc
@@ -29,6 +29,7 @@
#include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h"
#include "chrome/browser/tab_contents/provisional_load_details.h"
#include "chrome/browser/tab_contents/tab_contents.h"
+#include "chrome/browser/views/browser_dialogs.h"
#include "chrome/browser/views/page_info_bubble_view.h"
#include "chrome/browser/views/tab_contents/render_view_context_menu_views.h"
#include "chrome/browser/views/tab_contents/tab_contents_container.h"
@@ -702,6 +703,11 @@ void ExternalTabContainer::BeforeUnloadFired(TabContents* tab,
}
}
+void ExternalTabContainer::ShowRepostFormWarningDialog(
+ TabContents* tab_contents) {
+ browser::ShowRepostFormWarningDialog(GetNativeView(), tab_contents);
+}
+
////////////////////////////////////////////////////////////////////////////////
// ExternalTabContainer, NotificationObserver implementation: