Skip to content

Commit

Permalink
Bug 1557729 - Use principal for permission post prompts instead of UR…
Browse files Browse the repository at this point in the history
…I. r=xeonchen

Differential Revision: https://phabricator.services.mozilla.com/D35033

--HG--
extra : moz-landing-system : lando
  • Loading branch information
Johann Hofmann committed Jun 14, 2019
1 parent 634485e commit 52d5f25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions browser/modules/PermissionUI.jsm
Expand Up @@ -528,10 +528,10 @@ var PermissionPromptPrototype = {
if (PrivateBrowsingUtils.isBrowserPrivate(browser)) {
scope = SitePermissions.SCOPE_SESSION;
}
SitePermissions.set(principal.URI,
this.permissionKey,
promptAction.action,
scope);
SitePermissions.setForPrincipal(principal,
this.permissionKey,
promptAction.action,
scope);
},
};
popupNotificationActions.push(action);
Expand Down

0 comments on commit 52d5f25

Please sign in to comment.