summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_active_document.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-21 01:37:29 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-21 01:37:29 +0000
commitb581105a75be362e95c6169a1124310f3bef3bfe (patch)
tree58d0c4b83769ecfc2d85f9c8c2ad5d24c8c78691 /chrome_frame/chrome_active_document.cc
parente668070a63734b38c52bf358e98a4a1a730cf57e (diff)
downloadchromium_src-b581105a75be362e95c6169a1124310f3bef3bfe.zip
chromium_src-b581105a75be362e95c6169a1124310f3bef3bfe.tar.gz
chromium_src-b581105a75be362e95c6169a1124310f3bef3bfe.tar.bz2
Fix for the ChromeFrame unload event test failures seen on the builder. For some reason
the test shows up as succeeded even though it is failing. The test fails when the automation client instance is reused, i.e the new page loads in the same tab. We need to set the ready state of the active document instance to ready when we reuse the automation client instance. TBR=amit Review URL: http://codereview.chromium.org/3117032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56963 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_active_document.cc')
-rw-r--r--chrome_frame/chrome_active_document.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome_frame/chrome_active_document.cc b/chrome_frame/chrome_active_document.cc
index 66c7fcc..7443943 100644
--- a/chrome_frame/chrome_active_document.cc
+++ b/chrome_frame/chrome_active_document.cc
@@ -83,6 +83,7 @@ HRESULT ChromeActiveDocument::FinalConstruct() {
DCHECK(automation_client_.get() != NULL);
automation_client_->Reinitialize(this, url_fetcher_.get());
is_automation_client_reused_ = true;
+ OnAutomationServerReady();
} else {
// The FinalConstruct implementation in the ChromeFrameActivexBase class
// i.e. Base creates an instance of the ChromeFrameAutomationClient class