Bug 1142633 - Fix intermittent netmonitor e10s test failures caused by dead CPOW usage. r=vporof

This commit is contained in:
Sami Jaktholm 2015-03-12 20:39:43 +02:00
parent 9c862a5b7e
commit b56c43ff6c

View File

@ -139,7 +139,6 @@ function initNetMonitor(aUrl, aWindow) {
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();
@ -151,6 +150,7 @@ function initNetMonitor(aUrl, aWindow) {
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];
});