Closed Bug 1773801 Opened 3 years ago Closed 2 years ago

localStorage does not persist across a restart

Categories

(Core :: Storage: localStorage & sessionStorage, defect)

Firefox 100
defect

Tracking

()

RESOLVED WORKSFORME

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:

  1. Open Firefox with any website (for example, bugzilla.mozilla.org.
  2. Open up the developer tools and type localStorage.setItem("ethan-test", "hi").
  3. Click on the "Storage" tab of developer tools and ensure that the value is set.
  4. Restart Firefox.
  5. 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.

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!

Couldn't reproduce this with releases 94, 101 or nightly. Jan, do you have any clues about what could give rise to this effect?

Flags: needinfo?(jvarga)

(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).

Flags: needinfo?(jvarga)

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.

Flags: needinfo?(ethan.glasser.camp)

It seems to be working now for whatever reason. Thanks.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(ethan.glasser.camp)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.