diff --git a/dom/apps/src/AppsService.js b/dom/apps/src/AppsService.js index fe364235b07..503a9692ac5 100644 --- a/dom/apps/src/AppsService.js +++ b/dom/apps/src/AppsService.js @@ -110,9 +110,9 @@ AppsService.prototype = { return Services.io.newURI(to, null, null); } } - } else { - return null; } + // No matching redirect. + return null; }, classID : APPS_SERVICE_CID, diff --git a/dom/apps/src/Webapps.jsm b/dom/apps/src/Webapps.jsm index 51f5f8d3cac..ac906095ceb 100644 --- a/dom/apps/src/Webapps.jsm +++ b/dom/apps/src/Webapps.jsm @@ -2104,6 +2104,8 @@ this.DOMApplicationRegistry = { app.downloadAvailable = false; this._saveApps((function() { this.updateAppHandlers(null, aManifest, appObject); + this.broadcastMessage("Webapps:AddApp", { id: aId, app: appObject }); + if (supportUseCurrentProfile()) { // Update the permissions for this app. PermissionsInstaller.installPermissions({ manifest: aManifest,