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

gitolite role git at cupani.torproject.org
Tue Apr 26 15:29:50 UTC 2022


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 at mozilla.com>
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.


More information about the tor-commits mailing list