зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
dc852753a8
Коммит
6483fbf5a1
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче