commit f970a6e8a14d8f80f15be22fa1ed6b091b4d596b Author: Johann Hofmann jhofmann@mozilla.com Date: Fri Jun 14 15:49:25 2019 +0000
Bug 1557729 - Use principal for permission post prompts instead of URI. r=xeonchen
Differential Revision: https://phabricator.services.mozilla.com/D35033
--HG-- extra : moz-landing-system : lando --- browser/modules/PermissionUI.jsm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/browser/modules/PermissionUI.jsm b/browser/modules/PermissionUI.jsm index a45c551e1b8f..58a2f293c714 100644 --- a/browser/modules/PermissionUI.jsm +++ b/browser/modules/PermissionUI.jsm @@ -569,8 +569,8 @@ var PermissionPromptPrototype = { if (PrivateBrowsingUtils.isBrowserPrivate(browser)) { scope = SitePermissions.SCOPE_SESSION; } - SitePermissions.set( - principal.URI, + SitePermissions.setForPrincipal( + principal, this.permissionKey, promptAction.action, scope
tbb-commits@lists.torproject.org