summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/preferences/permissions.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 06:32:22 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 06:32:22 +0200
commite33d1d875e14056204214378bbee3923bce8219c (patch)
tree180b35eeb9cc8cd87cea7e274895ffbab7ebb359 /application/palemoon/components/preferences/permissions.js
parent62779a4b8dc7ddd4ba406bd0245ae6f7386b2f2f (diff)
downloadUXP-e33d1d875e14056204214378bbee3923bce8219c.tar
UXP-e33d1d875e14056204214378bbee3923bce8219c.tar.gz
UXP-e33d1d875e14056204214378bbee3923bce8219c.tar.lz
UXP-e33d1d875e14056204214378bbee3923bce8219c.tar.xz
UXP-e33d1d875e14056204214378bbee3923bce8219c.zip
Bug 956151 - Remove the perm attribute in permissions.js
Diffstat (limited to 'application/palemoon/components/preferences/permissions.js')
-rw-r--r--application/palemoon/components/preferences/permissions.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/application/palemoon/components/preferences/permissions.js b/application/palemoon/components/preferences/permissions.js
index 785e26d5e..0723a44cb 100644
--- a/application/palemoon/components/preferences/permissions.js
+++ b/application/palemoon/components/preferences/permissions.js
@@ -8,13 +8,12 @@ const nsICookiePermission = Components.interfaces.nsICookiePermission;
const NOTIFICATION_FLUSH_PERMISSIONS = "flush-pending-permissions";
-function Permission(host, rawHost, type, capability, perm)
+function Permission(host, rawHost, type, capability)
{
this.host = host;
this.rawHost = rawHost;
this.type = type;
this.capability = capability;
- this.perm = perm;
}
var gPermissionManager = {
@@ -105,7 +104,7 @@ var gPermissionManager = {
// Avoid calling the permission manager if the capability settings are
// the same. Otherwise allow the call to the permissions manager to
// update the listbox for us.
- exists = this._permissions[i].perm == aCapability;
+ exists = this._permissions[i].capability == capabilityString;
break;
}
}
@@ -337,8 +336,7 @@ var gPermissionManager = {
var p = new Permission(host,
(host.charAt(0) == ".") ? host.substring(1,host.length) : host,
aPermission.type,
- capabilityString,
- aPermission.capability);
+ capabilityString);
this._permissions.push(p);
}
},