Closed Bug 1977787 Opened 6 months ago Closed 6 months ago

android: RFP: DiskStorageLimit fails

Categories

(Core :: Storage: Quota Manager, defect)

Firefox 142
Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox142 --- wontfix
firefox143 --- fixed

People

(Reporter: thorin, Assigned: fkilic)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

followup on Bug 1781277

  • device: android nightly 142.0a1 build id 2025-07-14-211451 - a device I have that actually has limited space
  • rfp enabled
  • even did a force quit to be sure
  • https://arkenfox.github.io/TZP/tzp.html#storage
  • storage quota
    • actual: RFP fail and 6-7GB (i.e 6 to 7 GB - I bucketize it)
    • expected: RFP pass and 10GB (i.e if exactly 10GB I don't bucketize it)

I wonder if piero or someone can test on a linux VM with limited free space to check this is not just an android thing (we have failed to pass RFP info in geckoview before in places - this might be one of them)

Flags: needinfo?(pierov)
See Also: → 1781277

does it return 214,748,364 6,871,947,673? we set the android limit to 32gib, so it is 32gibs/5

I get 50GiB (53687091200) in a 8GB live Linux VM, so spoof is working as expected.
However, I had to restart after applying RFP.

Flags: needinfo?(pierov)

(In reply to Fatih Kilic [:fkilic] from comment #1)

does it return 214,748,364 6,871,947,673? we set the android limit to 32gib, so it is 32gibs/5

Yes, that's it spot on. When/who did we decide to go with that value? (sorry if I missed it) It does not match non-RFP android, which reports 10GB for me (because I have lots of room, I keep forgetting this a new phone with extras - I have 223GB spare). So RFP is deviating here (i.e we are not using a benign value). IMO, we should report what Firefox does when permission is not granted - i.e 10GB

However, I had to restart after applying RFP.

yup, I found that out in https://bugzilla.mozilla.org/show_bug.cgi?id=1781277#c56

or am i missing something here? do any nonRFP users report 6,871,947,673 ?

Ah no, nonRFPs don't report 32gb/5. Honestly, it has been a while since we first wrote the patch, so I don't really remember. I know Tom was okay with it but I don't fully remember how, who and why we landed on 32gb. I mean if we really want to do it, we can just delete these and these lines. Just let me know if we want to do that.

OS: Unspecified → Android

Yes please - let's not deviate from common (benign/real-world edit: i.e gecko ones) values - every time we do that, it comes back to be used against us

Assignee: nobody → fkilic
Status: NEW → ASSIGNED
Attachment #9501550 - Attachment description: Bug 1977787 - Remove lower limit for RFP'ed storage. r?timhuang → Bug 1977787 - Remove lower storage limit for RFP in Android. r?timhuang
Attachment #9501550 - Attachment description: Bug 1977787 - Remove lower storage limit for RFP in Android. r?timhuang → Bug 1977787 - Match storage limit to common value/desktop for RFP in Android. r?timhuang
Severity: -- → S3
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: