Commit fabd3536 authored by fkilic's avatar fkilic Committed by Pier Angelo Vendrame
Browse files

Bug 1977787 - Match storage limit to common value/desktop for RFP in Android. r=timhuang

parent 2874366b
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);

+1 −6
Original line number Diff line number Diff line
@@ -2679,12 +2679,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));