[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser] 190/311: Bug 1755190 - Improve the runtime of the subdomain cookie permission check in SanitizeOnShutdown. r=pbz a=dmeehan



This is an automated email from the git hooks/post-receive script.

pierov pushed a commit to branch geckoview-99.0.1-11.0-1
in repository tor-browser.

commit 517d9d53f1a363db5f72c2fe5c1c5459dc009b31
Author: Hannah Peuckmann <hpeuckmann@xxxxxxxxxxx>
AuthorDate: Mon Mar 14 19:35:21 2022 +0000

    Bug 1755190 - Improve the runtime of the subdomain cookie permission check in SanitizeOnShutdown. r=pbz a=dmeehan
    
    Differential Revision: https://phabricator.services.mozilla.com/D140970
---
 browser/modules/Sanitizer.jsm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/browser/modules/Sanitizer.jsm b/browser/modules/Sanitizer.jsm
index 7b76709924363..0baa7ef307188 100644
--- a/browser/modules/Sanitizer.jsm
+++ b/browser/modules/Sanitizer.jsm
@@ -999,11 +999,10 @@ function cookiesAllowedForDomainOrSubDomain(principal) {
     return false;
   }
 
-  for (let perm of Services.perms.all) {
+  for (let perm of Services.perms.getAllWithTypePrefix("cookie")) {
     if (perm.type != "cookie") {
       continue;
     }
-
     // We consider just permissions set for http, https and file URLs.
     if (!isSupportedPrincipal(perm.principal)) {
       continue;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits