@@ -1332,12 +1332,6 @@ void GetJarPrefix(bool aInIsolatedMozBrowser, nsACString& aJarPrefix) {
1332
1332
// This method computes and returns our best guess for the temporary storage
1333
1333
// limit (in bytes), based on disk capacity.
1334
1334
Result<uint64_t , nsresult> GetTemporaryStorageLimit (nsIFile& aStorageDir) {
1335
- if (nsContentUtils::ShouldResistFingerprinting (
1336
- " The storage limit is set only once and not webpage specific." ,
1337
- RFPTarget::DiskStorageLimit)) {
1338
- return nsRFPService::GetSpoofedStorageLimit ();
1339
- }
1340
-
1341
1335
// The fixed limit pref can be used to override temporary storage limit
1342
1336
// calculation.
1343
1337
if (StaticPrefs::dom_quotaManager_temporaryStorage_fixedLimit () >= 0 ) {
@@ -7513,21 +7507,17 @@ void QuotaManager::SetThumbnailPrivateIdentityId(
7513
7507
}
7514
7508
}
7515
7509
7516
- /* static */
7517
- uint64_t QuotaManager::GetGroupLimitForLimit (uint64_t aLimit) {
7510
+ uint64_t QuotaManager::GetGroupLimit () const {
7518
7511
// To avoid one group evicting all the rest, limit the amount any one group
7519
7512
// can use to 20% resp. a fifth. To prevent individual sites from using
7520
7513
// exorbitant amounts of storage where there is a lot of free space, cap the
7521
7514
// group limit to 10GB.
7522
- const auto x = std::min<uint64_t >(aLimit / 5 , 10 GB);
7515
+ const auto x = std::min<uint64_t >(mTemporaryStorageLimit / 5 , 10 GB);
7523
7516
7524
7517
// In low-storage situations, make an exception (while not exceeding the total
7525
7518
// storage limit).
7526
- return std::min<uint64_t >(aLimit, std::max<uint64_t >(x, 10 MB));
7527
- }
7528
-
7529
- uint64_t QuotaManager::GetGroupLimit () const {
7530
- return GetGroupLimitForLimit (mTemporaryStorageLimit );
7519
+ return std::min<uint64_t >(mTemporaryStorageLimit ,
7520
+ std::max<uint64_t >(x, 10 MB));
7531
7521
}
7532
7522
7533
7523
Maybe<OriginStateMetadata> QuotaManager::GetOriginStateMetadata (
0 commit comments