mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
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:
parent
2fa7a9ac6b
commit
74eeee21f6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user