summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/extensions/extension_host.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc
index 525b267..e905291 100644
--- a/chrome/browser/extensions/extension_host.cc
+++ b/chrome/browser/extensions/extension_host.cc
@@ -355,6 +355,11 @@ void ExtensionHost::DidStopLoading() {
}
void ExtensionHost::DocumentAvailableInMainFrame(RenderViewHost* rvh) {
+ // If the document has already been marked as available for this host, then
+ // bail. No need for the redundant setup. http://crbug.com/31170
+ if (document_element_available_)
+ return;
+
document_element_available_ = true;
if (is_background_page()) {
extension_->SetBackgroundPageReady();