Bug 1566850 - Remove target.activeConsole usage in Toolbox. r=ochameau.

Differential Revision: https://phabricator.services.mozilla.com/D56692

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nicolas Chevobbe 2019-12-13 09:15:17 +00:00
parent 2fa7a9ac6b
commit 74eeee21f6

View File

@ -667,10 +667,8 @@ Toolbox.prototype = {
await target.attach();
// Start tracking network activity on toolbox open for targets such as tabs.
// (Workers and potentially others don't manage the console client in the target.)
if (target.activeConsole) {
await target.activeConsole.startListeners(["NetworkActivity"]);
}
const webConsoleFront = await target.getFront("console");
await webConsoleFront.startListeners(["NetworkActivity"]);
const threadFront = await this._attachAndResumeThread(target);
this._startThreadFrontListeners(threadFront);