Bug 864152 - Fix for intermittent browser_webconsole_network_panel.js | uncaught exception - TypeError: imageNode or elem is null at resource:///modules/devtools/webconsole/network-panel.js; r=me
authorMihai Sucan <mihai.sucan@gmail.com>
Tue, 10 Sep 2013 14:08:53 +0300
changeset 159294 2ea8259f7e39bbb3ca673e4c796d0a4e47e2c03e
parent 159293 e7a6c3232f14630f9e868599eb10c7d1e02a75af
child 159295 6d8738e8dc7118fef4855c98127e58075a320b94
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs864152
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 864152 - Fix for intermittent browser_webconsole_network_panel.js | uncaught exception - TypeError: imageNode or elem is null at resource:///modules/devtools/webconsole/network-panel.js; r=me
browser/devtools/webconsole/network-panel.js
--- a/browser/devtools/webconsole/network-panel.js
+++ b/browser/devtools/webconsole/network-panel.js
@@ -670,19 +670,17 @@ NetworkPanel.prototype =
 
   /**
    * Updates the content of the NetworkPanel's iframe.
    *
    * @returns void
    */
   update: function NP_update()
   {
-    // After the iframe's contentWindow is ready, the document object is set.
-    // If the document object is not available yet nothing needs to be updated.
-    if (!this.document || !this.document.getElementById("headUrl")) {
+    if (!this.document || this.document.readyState != "complete") {
       return;
     }
 
     let updates = this.httpActivity.updates;
     let timing = this.httpActivity.timings;
     let request = this.httpActivity.request;
     let response = this.httpActivity.response;