mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 805934 - Ignore unknown permissions during install and don't throw. r=fabrice
This commit is contained in:
parent
330c17966d
commit
42f963611b
@ -270,10 +270,10 @@ for (let permName in PermissionsTable) {
|
||||
function expandPermissions(aPermName, aAccess) {
|
||||
if (!PermissionsTable[aPermName]) {
|
||||
Cu.reportError("PermissionsTable.jsm: expandPermissions: Unknown Permission: " + aPermName);
|
||||
throw new Error("PermissionsTable.jsm: expandPermissions: Unknown Permission: " + aPermName);
|
||||
return [];
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
Temporarily disabled in order to add access fields to gaia: See Bug 805646
|
||||
if (!aAccess && PermissionsTable[aPermName].access ||
|
||||
aAccess && !PermissionsTable[aPermName].access) {
|
||||
@ -387,9 +387,9 @@ let PermissionsInstaller = {
|
||||
|
||||
for (let permName in newManifest.permissions) {
|
||||
if (!PermissionsTable[permName]) {
|
||||
throw new Error("PermissionsInstaller.jsm: '" + permName + "'" +
|
||||
" is not a valid Webapps permission type. Aborting Webapp installation");
|
||||
return;
|
||||
Cu.reportError("PermissionsInstaller.jsm: '" + permName + "'" +
|
||||
" is not a valid Webapps permission type.");
|
||||
continue;
|
||||
}
|
||||
|
||||
let perms = expandPermissions(permName,
|
||||
|
Loading…
Reference in New Issue
Block a user