Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2667)

Unified Diff: chrome/browser/extensions/extension_host.cc

Issue 519036: Fixes bug where recreating the document element via altering |documentElement... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_host.cc
===================================================================
--- chrome/browser/extensions/extension_host.cc (revision 35457)
+++ chrome/browser/extensions/extension_host.cc (working copy)
@@ -355,6 +355,11 @@
}
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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698