[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser/tor-browser-68.1.0esr-9.0-2] Bug 1557729 - Use principal for permission post prompts instead of URI. r=xeonchen
commit f970a6e8a14d8f80f15be22fa1ed6b091b4d596b
Author: Johann Hofmann <jhofmann@xxxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits