From 33bd26d46caad125cc57f7b1d8e68a2a746b1d2e Mon Sep 17 00:00:00 2001 From: "iyengar@google.com" Date: Tue, 31 Aug 2010 05:05:03 +0000 Subject: Fix ChromeFrame unload event tests which were failing on IE6 due to an IE navigation sequence missing for the second URL loaded as part of the test. We were not firing the BeforeNavigate event for IE6 for navigations initiated by Webkit. This should also fix the Form post back forward tests which were failing on IE6. TBR=amit Review URL: http://codereview.chromium.org/3266011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57963 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/chrome_active_document.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome_frame/chrome_active_document.cc') diff --git a/chrome_frame/chrome_active_document.cc b/chrome_frame/chrome_active_document.cc index a4833b2..2418413 100644 --- a/chrome_frame/chrome_active_document.cc +++ b/chrome_frame/chrome_active_document.cc @@ -754,6 +754,10 @@ void ChromeActiveDocument::UpdateNavigationState( if (web_browser_events_svc) { VARIANT_BOOL should_cancel = VARIANT_FALSE; web_browser_events_svc->FireBeforeNavigate2Event(&should_cancel); + } else if (doc_object_svc) { + BOOL should_cancel = FALSE; + doc_object_svc->FireBeforeNavigate2(NULL, url_, 0, NULL, NULL, 0, + NULL, FALSE, &should_cancel); } // We need to tell IE that we support navigation so that IE will query us -- cgit v1.1