Bug 1084501 - Set proper permissions for pre-installed trusted apps. r=fabrice

When trusted hosted apps were installed from a preloaded
offline cache their permissions were not correctly set
due to information on 'kind' of application being missing
on pre-install.
---
 dom/apps/Webapps.jsm | 2 ++
 1 file changed, 2 insertions(+)
This commit is contained in:
Markus Nilsson 2014-11-03 11:08:06 -08:00
parent aca3e49785
commit 62bb2772cc

View File

@ -451,6 +451,8 @@ this.DOMApplicationRegistry = {
if (supportUseCurrentProfile()) {
this._readManifests([{ id: aId }]).then((aResult) => {
let data = aResult[0];
this.webapps[aId].kind = this.webapps[aId].kind ||
this.appKind(this.webapps[aId], aResult[0].manifest);
PermissionsInstaller.installPermissions({
manifest: data.manifest,
manifestURL: this.webapps[aId].manifestURL,