Backed out changeset fe10dc4545c6 (bug 940254) for xpcshell bustage

This commit is contained in:
Wes Kocher 2014-01-08 18:21:35 -08:00
parent 3cb7c08e29
commit c1e4acb146
2 changed files with 2 additions and 14 deletions

View File

@ -40,8 +40,6 @@ for (let permName in PermissionsTable) {
expandedPermNames = expandPermissions(permName);
}
AllPossiblePermissions = AllPossiblePermissions.concat(expandedPermNames);
AllPossiblePermissions =
AllPossiblePermissions.concat(["offline-app", "pin-app"]);
}
this.PermissionsInstaller = {
@ -77,11 +75,6 @@ this.PermissionsInstaller = {
newPermNames = newPermNames.concat(expandedPermNames);
}
// Add the appcache related permissions.
if (newManifest.appcache_path) {
newPermNames = newPermNames.concat(["offline-app", "pin-app"]);
}
for (let idx in AllPossiblePermissions) {
let permName = AllPossiblePermissions[idx];
let index = newPermNames.indexOf(permName);
@ -125,13 +118,6 @@ this.PermissionsInstaller = {
break;
}
// Add the appcache related permissions. We allow it for all kinds of
// apps.
if (newManifest.appcache_path) {
this._setPermission("offline-app", "allow", aApp);
this._setPermission("pin-app", "allow", aApp);
}
for (let permName in newManifest.permissions) {
if (!PermissionsTable[permName]) {
Cu.reportError("PermissionsInstaller.jsm: '" + permName + "'" +

View File

@ -227,6 +227,8 @@ this.PermissionsTable = { geolocation: {
certified: ALLOW_ACTION,
substitute: [
"indexedDB-unlimited",
"offline-app",
"pin-app",
"default-persistent-storage"
]
},