зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1563687 - Renamed ContentProcessSession.destroy to destructor in order to match this project's conventions. r=remote-protocol-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D37041 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
cf67d306f8
Коммит
c64c4d7ee4
|
@ -31,7 +31,7 @@ class ContentProcessSession {
|
||||||
this.messageManager.addMessageListener("remote:destroy", this);
|
this.messageManager.addMessageListener("remote:destroy", this);
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy() {
|
destructor() {
|
||||||
this.messageManager.removeMessageListener("remote:request", this);
|
this.messageManager.removeMessageListener("remote:request", this);
|
||||||
this.messageManager.removeMessageListener("remote:destroy", this);
|
this.messageManager.removeMessageListener("remote:destroy", this);
|
||||||
this.domains.clear();
|
this.domains.clear();
|
||||||
|
@ -93,7 +93,7 @@ class ContentProcessSession {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "remote:destroy":
|
case "remote:destroy":
|
||||||
this.destroy();
|
this.destructor();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче