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

Unified Diff: Source/devtools/front_end/devtools.js

Issue 1167323004: [DevTools] Fix console error when reloading DevTools frontend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: Source/devtools/front_end/devtools.js
diff --git a/Source/devtools/front_end/devtools.js b/Source/devtools/front_end/devtools.js
index 746ec801fbc43e5d998485df756b812ad9370289..5f0227958822f59879cca45598cb8813900406dd 100644
--- a/Source/devtools/front_end/devtools.js
+++ b/Source/devtools/front_end/devtools.js
@@ -824,7 +824,7 @@ function windowLoaded()
installBackwardsCompatibility();
}
-if (window.document.readyState === "complete" || window.document.readyState === "interactive")
+if (window.document.head && (window.document.readyState === "complete" || window.document.readyState === "interactive"))
installBackwardsCompatibility();
else
window.addEventListener("DOMContentLoaded", windowLoaded, false);
« 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