Bug 896436 - Notes Plus app update - fail during oauth redirect r=ferjm

This commit is contained in:
Fabrice Desré 2013-07-24 10:15:37 -07:00
parent 1ce661c3b9
commit 1e84d1cc57
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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,