Bug 1035454, part 4 - Don't send 'Webapps:UnregisterForMessages' at xpcom-shutdown, r=fabrice.
authorBen Turner <bent.mozilla@gmail.com>
Wed, 15 Oct 2014 20:04:33 -0700
changeset 210673 4431e4327a4fd3edb8acbd17f519e7dac2428c30
parent 210672 5577b052565112c79f58f7718f27e94bc46b658b
child 210674 5c095b4e178cdd5e86f0156e348d2a84e23fa6c2
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersfabrice
bugs1035454
milestone36.0a1
Bug 1035454, part 4 - Don't send 'Webapps:UnregisterForMessages' at xpcom-shutdown, r=fabrice.
dom/apps/AppsServiceChild.jsm
--- a/dom/apps/AppsServiceChild.jsm
+++ b/dom/apps/AppsServiceChild.jsm
@@ -126,19 +126,16 @@ this.DOMApplicationRegistry = {
     // cpmm.addMessageListener causes the DOMApplicationRegistry object to
     // live forever if we don't clean up properly.
     this.webapps = null;
     this.DOMApps = null;
 
     APPS_IPC_MSG_NAMES.forEach((aMsgName) => {
       this.cpmm.removeMessageListener(aMsgName, this);
     });
-
-    this.cpmm.sendAsyncMessage("Webapps:UnregisterForMessages",
-                               APPS_IPC_MSG_NAMES)
   },
 
   receiveMessage: function receiveMessage(aMessage) {
     debug("Received " + aMessage.name + " message.");
     let msg = aMessage.data;
     switch (aMessage.name) {
       case "Webapps:AddApp":
         this.webapps[msg.id] = msg.app;