Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit b046cf52 authored by Carmelo Messina's avatar Carmelo Messina
Browse files

Hardening against incognito mode detection: fix max storage buckets with...

Hardening against incognito mode detection: fix max storage buckets with session only cookies (#1754)
parent 239fd687
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -4,9 +4,22 @@ Subject: Hardening against incognito mode detection

License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
---
 storage/browser/quota/quota_manager_impl.cc | 2 +-
 storage/browser/quota/quota_settings.cc     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/storage/browser/quota/quota_manager_impl.cc b/storage/browser/quota/quota_manager_impl.cc
--- a/storage/browser/quota/quota_manager_impl.cc
+++ b/storage/browser/quota/quota_manager_impl.cc
@@ -1800,7 +1800,7 @@ int64_t QuotaManagerImpl::GetQuotaForStorageKey(
   }
 
   if (type == StorageType::kTemporary && special_storage_policy_ &&
-      special_storage_policy_->IsStorageSessionOnly(
+      ((false)) && special_storage_policy_->IsStorageSessionOnly(
           storage_key.origin().GetURL())) {
     return settings.session_only_per_storage_key_quota;
   }
diff --git a/storage/browser/quota/quota_settings.cc b/storage/browser/quota/quota_settings.cc
--- a/storage/browser/quota/quota_settings.cc
+++ b/storage/browser/quota/quota_settings.cc