summaryrefslogtreecommitdiffstats
path: root/chrome_frame
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame')
-rw-r--r--chrome_frame/chrome_active_document.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome_frame/chrome_active_document.cc b/chrome_frame/chrome_active_document.cc
index a7796d5..4a42951 100644
--- a/chrome_frame/chrome_active_document.cc
+++ b/chrome_frame/chrome_active_document.cc
@@ -72,7 +72,7 @@ HRESULT ChromeActiveDocument::FinalConstruct() {
// ownership of the cached document's automation client. This is an
// optimization to get Chrome active documents to load faster.
ChromeActiveDocument* cached_document = g_active_doc_cache.Get();
- if (cached_document) {
+ if (cached_document && cached_document->IsValid()) {
DCHECK(automation_client_.get() == NULL);
automation_client_.swap(cached_document->automation_client_);
DLOG(INFO) << "Reusing automation client instance from "