mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
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:
parent
aca3e49785
commit
62bb2772cc
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user