mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 13:57:32 +00:00
Bug 1574124 - Updated PermissionUI.jsm to use SitePermissions principal methods. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D42337 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
8b7a11d51c
commit
f568195330
@ -426,7 +426,7 @@ var PermissionPromptPrototype = {
|
||||
} else if (this.permissionKey) {
|
||||
// If we're reading a permission which already has a temporary value,
|
||||
// see if we can use the temporary value.
|
||||
let { state } = SitePermissions.get(
|
||||
let { state } = SitePermissions.getForPrincipal(
|
||||
null,
|
||||
this.permissionKey,
|
||||
this.browser
|
||||
@ -514,7 +514,7 @@ var PermissionPromptPrototype = {
|
||||
// Temporarily store BLOCK permissions.
|
||||
// We don't consider subframes when storing temporary
|
||||
// permissions on a tab, thus storing ALLOW could be exploited.
|
||||
SitePermissions.set(
|
||||
SitePermissions.setForPrincipal(
|
||||
null,
|
||||
this.permissionKey,
|
||||
promptAction.action,
|
||||
|
Loading…
x
Reference in New Issue
Block a user