diff options
author | iyengar@google.com <iyengar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 05:05:03 +0000 |
---|---|---|
committer | iyengar@google.com <iyengar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 05:05:03 +0000 |
commit | 33bd26d46caad125cc57f7b1d8e68a2a746b1d2e (patch) | |
tree | d4a3a1945d3a4c858252afc10f26f341ea458abb /chrome_frame/chrome_active_document.cc | |
parent | 47b167542eb663936e8c6fd68a2947ed007ea266 (diff) | |
download | chromium_src-33bd26d46caad125cc57f7b1d8e68a2a746b1d2e.zip chromium_src-33bd26d46caad125cc57f7b1d8e68a2a746b1d2e.tar.gz chromium_src-33bd26d46caad125cc57f7b1d8e68a2a746b1d2e.tar.bz2 |
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
Diffstat (limited to 'chrome_frame/chrome_active_document.cc')
-rw-r--r-- | chrome_frame/chrome_active_document.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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 |