Bug 792882 - Errant call to mm.broadcastMessage in Webapps.jsm. r=fabrice
authorGregor Wagner <anygregor@gmail.com>
Wed, 26 Sep 2012 12:04:33 -0700
changeset 111769 7b7ea868fc5d1c1f34ab55059153a7a2070ecacf
parent 111768 e80d2a8e2fc04112709e6f27baf5391839cdaf3a
child 111770 e2da1a9124b654d16fa087e61440f5e7bb54be67
push idunknown
push userunknown
push dateunknown
reviewersfabrice
bugs792882
milestone18.0a1
Bug 792882 - Errant call to mm.broadcastMessage in Webapps.jsm. r=fabrice
dom/apps/src/Webapps.jsm
--- a/dom/apps/src/Webapps.jsm
+++ b/dom/apps/src/Webapps.jsm
@@ -858,17 +858,17 @@ let DOMApplicationRegistry = {
       this._saveApps((function() {
         this.broadcastMessage("Webapps:Uninstall:Return:OK", aData);
         Services.obs.notifyObservers(this, "webapps-sync-uninstall", appNote);
         this.broadcastMessage("Webapps:RemoveApp", { id: id });
       }).bind(this));
     }
 
     if (!found) {
-      aData.mm.broadcastMessage("Webapps:Uninstall:Return:KO", aData);
+      aData.mm.sendAsyncMessage("Webapps:Uninstall:Return:KO", aData);
     }
   },
 
   getSelf: function(aData, aMm) {
     aData.apps = [];
 
     if (aData.appId == Ci.nsIScriptSecurityManager.NO_APP_ID ||
         aData.appId == Ci.nsIScriptSecurityManager.UNKNOWN_APP_ID) {