Bug 1465635 - Prevent netmonitor from destroying all "close" event listeners. r=jdescottes

Depends on D16874

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Alexandre Poirot 2019-01-30 13:28:27 +00:00
Родитель dc852753a8
Коммит 6483fbf5a1
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -129,12 +129,13 @@ class FirefoxConnector {
async removeListeners() {
if (this.tabTarget) {
this.tabTarget.off("close");
this.tabTarget.off("close", this.disconnect);
}
if (this.webConsoleClient) {
this.webConsoleClient.off("networkEvent");
this.webConsoleClient.off("networkEventUpdate");
this.webConsoleClient.off("docEvent");
this.webConsoleClient.off("networkEvent", this.dataProvider.onNetworkEvent);
this.webConsoleClient.off("networkEventUpdate",
this.dataProvider.onNetworkEventUpdate);
this.webConsoleClient.off("docEvent", this.onDocEvent);
}
}