From c64c4d7ee48b46d4218810f7dd400a64602697c0 Mon Sep 17 00:00:00 2001 From: Alexandre Poirot Date: Mon, 8 Jul 2019 15:07:09 +0000 Subject: [PATCH] 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 --- remote/sessions/ContentProcessSession.jsm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remote/sessions/ContentProcessSession.jsm b/remote/sessions/ContentProcessSession.jsm index d39af6543300..a94380928e53 100644 --- a/remote/sessions/ContentProcessSession.jsm +++ b/remote/sessions/ContentProcessSession.jsm @@ -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; } }