mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 956151 - Remove the perm attribute in permissions.js. r=dao
This commit is contained in:
parent
f8f8692a15
commit
17588a9c93
@ -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;
|
||||
}
|
||||
}
|
||||
@ -335,8 +334,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);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user