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:
Alexandre Poirot 2019-07-08 15:07:09 +00:00
Родитель cf67d306f8
Коммит c64c4d7ee4
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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;
} }
} }