Bug 1364081 - Unregister process list listener on root actor cleanup. r=jdescottes draft
authorAlexandre Poirot <poirot.alex@gmail.com>
Thu, 11 May 2017 16:06:22 +0200
changeset 576240 0627d4470296679f700508ab9c84606a48a5d81d
parent 575133 120d8562d4a53e4f78bd86c6f5076f6db265e5a3
child 628134 1b86c02336acf62221508594aa6635f605e6f880
push id58291
push userbmo:poirot.alex@gmail.com
push dateThu, 11 May 2017 14:07:37 +0000
reviewersjdescottes
bugs1364081
milestone55.0a1
Bug 1364081 - Unregister process list listener on root actor cleanup. r=jdescottes MozReview-Commit-ID: GdysoBw7hHl
devtools/server/actors/root.js
--- a/devtools/server/actors/root.js
+++ b/devtools/server/actors/root.js
@@ -226,16 +226,19 @@ RootActor.prototype = {
       this._parameters.addonList.onListChanged = null;
     }
     if (this._parameters.workerList) {
       this._parameters.workerList.onListChanged = null;
     }
     if (this._parameters.serviceWorkerRegistrationList) {
       this._parameters.serviceWorkerRegistrationList.onListChanged = null;
     }
+    if (this._parameters.processList) {
+      this._parameters.processList.onListChanged = null;
+    }
     if (typeof this._parameters.onShutdown === "function") {
       this._parameters.onShutdown();
     }
     this._extraActors = null;
     this.conn = null;
     this._tabActorPool = null;
     this._globalActorPool = null;
     this._windowActorPool = null;