Pier Angelo Vendrame pushed to branch base-browser-140.4.0esr-15.0-1 at The Tor 
Project / Applications / Tor Browser


Commits:
e71d2634 by Fatih Kilic at 2025-10-22T14:56:30+02:00
Bug 1977787 - Match storage limit to common value/desktop for RFP in Android. 
r=timhuang

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

- - - - -


2 changed files:

- dom/quota/test/xpcshell/test_temporaryStorageRFP.js
- toolkit/components/resistfingerprinting/nsRFPService.cpp


Changes:

=====================================
dom/quota/test/xpcshell/test_temporaryStorageRFP.js
=====================================
@@ -36,10 +36,7 @@ async function testSteps() {
   request = reset();
   await requestFinished(request);
 
-  let spoofedLimitBytes = 50 * GiB;
-  if (AppConstants.platform == "android") {
-    spoofedLimitBytes = 32 * GiB;
-  }
+  const spoofedLimitBytes = 50 * GiB;
 
   Services.prefs.setBoolPref("privacy.resistFingerprinting", true);
 


=====================================
toolkit/components/resistfingerprinting/nsRFPService.cpp
=====================================
@@ -2672,12 +2672,7 @@ CSSIntRect nsRFPService::GetSpoofedScreenAvailSize(const 
nsRect& aRect,
 
 /* static */
 uint64_t nsRFPService::GetSpoofedStorageLimit() {
-  uint64_t gib = 1024ULL * 1024ULL * 1024ULL;  // 1 GiB
-#ifdef ANDROID
-  uint64_t limit = 32ULL * gib;  // 32 GiB
-#else
-  uint64_t limit = 50ULL * gib;  // 50 GiB
-#endif
+  uint64_t limit = 50ULL * 1024ULL * 1024ULL * 1024ULL;  // 50 GiB
   MOZ_ASSERT(limit / 5 ==
              dom::quota::QuotaManager::GetGroupLimitForLimit(limit));
 



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/e71d2634c3e0554c05e4480e38554bf60d52abe7

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/e71d2634c3e0554c05e4480e38554bf60d52abe7
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to