mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +09:00
Bug 956151 - Remove the perm attribute in permissions.js
This commit is contained in:
parent
5eda6e6b44
commit
13a5a75e2c
1 changed files with 3 additions and 5 deletions
|
|
@ -8,13 +8,12 @@ const nsICookiePermission = Components.interfaces.nsICookiePermission;
|
||||||
|
|
||||||
const NOTIFICATION_FLUSH_PERMISSIONS = "flush-pending-permissions";
|
const NOTIFICATION_FLUSH_PERMISSIONS = "flush-pending-permissions";
|
||||||
|
|
||||||
function Permission(host, rawHost, type, capability, perm)
|
function Permission(host, rawHost, type, capability)
|
||||||
{
|
{
|
||||||
this.host = host;
|
this.host = host;
|
||||||
this.rawHost = rawHost;
|
this.rawHost = rawHost;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.capability = capability;
|
this.capability = capability;
|
||||||
this.perm = perm;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var gPermissionManager = {
|
var gPermissionManager = {
|
||||||
|
|
@ -105,7 +104,7 @@ var gPermissionManager = {
|
||||||
// Avoid calling the permission manager if the capability settings are
|
// Avoid calling the permission manager if the capability settings are
|
||||||
// the same. Otherwise allow the call to the permissions manager to
|
// the same. Otherwise allow the call to the permissions manager to
|
||||||
// update the listbox for us.
|
// update the listbox for us.
|
||||||
exists = this._permissions[i].perm == aCapability;
|
exists = this._permissions[i].capability == capabilityString;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -337,8 +336,7 @@ var gPermissionManager = {
|
||||||
var p = new Permission(host,
|
var p = new Permission(host,
|
||||||
(host.charAt(0) == ".") ? host.substring(1,host.length) : host,
|
(host.charAt(0) == ".") ? host.substring(1,host.length) : host,
|
||||||
aPermission.type,
|
aPermission.type,
|
||||||
capabilityString,
|
capabilityString);
|
||||||
aPermission.capability);
|
|
||||||
this._permissions.push(p);
|
this._permissions.push(p);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue