localStorage does not persist across a restart
Categories
(Core :: Storage: localStorage & sessionStorage, defect)
Tracking
()
People
(Reporter: ethan.glasser.camp, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0
Steps to reproduce:
- Open Firefox with any website (for example,
bugzilla.mozilla.org. - Open up the developer tools and type
localStorage.setItem("ethan-test", "hi"). - Click on the "Storage" tab of developer tools and ensure that the value is set.
- Restart Firefox.
- Consult the "Storage" tab of developer tools again and check Local Storage for the web site.
Actual results:
No value is present for "ethan-test".
Expected results:
The value stored in step 2 should be present.
| Reporter | ||
Comment 1•3 years ago
|
||
Investigating further, it seems like the behavior doesn't happen on a new profile, so I guess something is wrong with my existing one, but I have no idea what it is or how to find out. Files in ~/.mozilla/firefox/xxxxxxx.default-release/storage/default/https+++bugzilla.mozilla.org/ seem to have recent timestamps so I don't think it's anything obvious like a permission error. I don't see anything obvious in the browser console. Based on other bugs such as #1453699 I checked my dom.storage prefs -- dom.storage.next_gen is true as is dom.storage.shadow_writes. The new profile that doesn't have the issue has these values too. I would appreciate other things to try in order to debug this!
Comment 2•3 years ago
|
||
Couldn't reproduce this with releases 94, 101 or nightly. Jan, do you have any clues about what could give rise to this effect?
Comment 3•2 years ago
|
||
(In reply to Jari Jalkanen from comment #2)
Couldn't reproduce this with releases 94, 101 or nightly. Jan, do you have any clues about what could give rise to this effect?
We could start with checking if there are any QM_TRY related warnings in the browser console and if it doesn't help we can ask the reporter to run a debug build or even share theirs storage folder privately (or maybe just the one specific origin directory for start).
Comment 4•2 years ago
|
||
Hi Ethan, are you still having this problem? You can do a simple check for your storage health using https://firefox-storage-test.glitch.me/. If you see anything different from "Totally Working. (fullyOperational)" you might have a broken profile.
| Reporter | ||
Comment 5•2 years ago
|
||
It seems to be working now for whatever reason. Thanks.
Description
•