Bug 1142633 - Fix intermittent netmonitor e10s test failures caused by dead CPOW usage. r=vporof
authorSami Jaktholm <sjakthol@outlook.com>
Thu, 12 Mar 2015 20:39:43 +0200
changeset 251872 e939387694c1220f5346b003635b96de607842da
parent 251871 cda55565ed35629f720ecd5e66786a5fc8fd5146
child 251873 eb0a4ef7d8b904ec900e3612b38f383e7c2310f5
push id7860
push userjlund@mozilla.com
push dateMon, 30 Mar 2015 18:46:02 +0000
treeherdermozilla-aurora@8ac636cd51f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvporof
bugs1142633
milestone39.0a1
Bug 1142633 - Fix intermittent netmonitor e10s test failures caused by dead CPOW usage. r=vporof
browser/devtools/netmonitor/test/head.js
--- a/browser/devtools/netmonitor/test/head.js
+++ b/browser/devtools/netmonitor/test/head.js
@@ -134,28 +134,28 @@ function toggleCache(aTarget, aDisabled)
 
 function initNetMonitor(aUrl, aWindow) {
   info("Initializing a network monitor pane.");
 
   return Task.spawn(function*() {
     let tab = yield addTab(aUrl);
     info("Net tab added successfully: " + aUrl);
 
-    let debuggee = tab.linkedBrowser.contentWindow.wrappedJSObject;
     let target = TargetFactory.forTab(tab);
 
     yield target.makeRemote();
     info("Target remoted.");
 
     yield toggleCache(target, true);
     info("Cache disabled when the current and all future toolboxes are open.");
 
     let toolbox = yield gDevTools.showToolbox(target, "netmonitor");
     info("Netork monitor pane shown successfully.");
 
+    let debuggee = tab.linkedBrowser.contentWindow.wrappedJSObject;
     let monitor = toolbox.getCurrentPanel();
     return [tab, debuggee, monitor];
   });
 }
 
 function restartNetMonitor(aMonitor, aNewUrl) {
   info("Restarting the specified network monitor.");