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
parent cf67d306f8
commit c64c4d7ee4

View File

@ -31,7 +31,7 @@ class ContentProcessSession {
this.messageManager.addMessageListener("remote:destroy", this);
}
destroy() {
destructor() {
this.messageManager.removeMessageListener("remote:request", this);
this.messageManager.removeMessageListener("remote:destroy", this);
this.domains.clear();
@ -93,7 +93,7 @@ class ContentProcessSession {
break;
case "remote:destroy":
this.destroy();
this.destructor();
break;
}
}