Crashing Nightly while it is running out of storage space will not display the correct value of saved Cookies and Site Data
Categories
(Core :: Storage: localStorage & sessionStorage, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox66 | --- | affected |
People
(Reporter: tbabos, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: dom-lws-bugdash-triage)
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
| Reporter | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
| Reporter | ||
Comment 5•6 years ago
•
|
||
I somehow managed to reproduce this without crashing the browser. It occurs randomly and I couldn't figure it out what really triggers this behavior. (on Windows 7)
If it is of any help, I uploaded the profile on which it can be reproduced easily to the mozilla drive (https://drive.google.com/drive/u/1/folders/1FnrSDJc6ZpfVDgezqyTerNyhqynI528l).
It's a profile with full allowed storage reached (simulated via dom.quotaManager.temporaryStorage.fixedLimit) and with a bunch of tabs opened.
STR:
- Launch Nightly with this profile
- Check the Cookies and Site Data value -> it is around 12.4 GB
- Reload all tabs
- Check again the Cookies and Site data value -> It will be around 750 MB or so
It can be reproduced on Firefox Release as well using the same profile.
Given that its not actually a NextGen local storage issue, but a more weird edge case as mentioned by Andrew, is the engineering team taking into account to debug/fix this as part of enabling LSNG or not?
Comment 6•6 years ago
|
||
I don't think this will block LSNG landing. But this does fall under the "War on Storage Initialization Failures" umbrella which is a high priority for us as well. Setting this bug to block the meta-bug bug 1482662.
Can you elaborate on what specific series of actions you are talking about for step 3 "Reload all tabs"? Do you mean doing "Select all tabs" and then "Reload Tabs", or are you referring to the extension of the same name? (Or is that menu options still available on release?)
| Reporter | ||
Comment 7•6 years ago
•
|
||
Its the classic right click on a tab -> select all tabs -> right click again -> reload all tabs. Same steps applies on Firefox Release version as on Nightly.
I was able to reproduce this on Windows 7 specifically with that profile. Truth is I enabled/disabled LSNG a couple of times on it so I am not actually sure if it is a "generic" firefox issue or LSNG has something to do with it.
Updated•3 years ago
|
Updated•24 days ago
|
Comment 8•24 days ago
|
||
This is reproducible at least when starting from a fresh, clean profile.
Comment 9•24 days ago
|
||
This is the call to nsIQuotaManagerService.getUsage in the UI for population. But an interesting complication here is that, at least at the time the bug was filed, it's quite likely that QuotaManager would almost certainly have wiped out tons of data stored in QuotaManager because we would be experiencing dramatic storage pressure. So it would not be surprising for the amount of storage space reported to decrease massively. The only exceptions would be persisted origins, but note that site usage data is reported based on the site (eTLD+1) but persistence is only tracked on a per-origin basis, although the UI will report any site that has at least one persisted origin in it as a persisted site. (This is in the SiteDataManager.sys.mjs logic.) It's also possible that if the disk was sufficiently full, it might not even be possible for QuotaManager to initialize or properly clear data, which could have also caused 0 values and/or a failure to even respond to the callback which could then still also look a lot like a 0 value report from QuotaManager.
Description
•