Closed Bug 1649199 Opened 6 years ago Closed 6 years ago

Cannot use localStorage.setItem in a webextension content page, "quota exceeded"

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 1649503

People

(Reporter: mythmon, Unassigned)

References

Details

While trying to use the Normandy Devtools extension, I get a quota exceeded error when trying to store a few bytes into local storage. I am using the window.localStorage API in a content page hosted by a privileged extension.

The drive containing the profile has plenty of space, and StorageManager.estimate() tells me that there is plenty of room left (it reports ~2GB). The extension is not otherwise using any form of storage, as far as I can tell.

The DOM storage folks might have good suggestions on how to debug from there...

Component: Storage → Storage: localStorage & sessionStorage
Product: Toolkit → Core

Hi Jan,
:mythmon is triggering this issue on Nightly, where LSNG is enabled by default, is there anything that we can ask Michael to try locally to be able to collect some additional useful information about this issue?

Component: Storage: localStorage & sessionStorage → Storage
Flags: needinfo?(jvarga)
Product: Core → Toolkit

Hey Luca, did you mean to revert the Bugzilla component? 😄 I think Toolkit :: Storage is for our internal storage bindings—LMDB and SQLite; the Core :: Storage: * components are for the DOM APIs like IDB and localStorage that are built on top of them.

(In reply to :Lina Cambridge from comment #3)

Hey Luca, did you mean to revert the Bugzilla component? 😄 I think Toolkit :: Storage is for our internal storage bindings—LMDB and SQLite; the Core :: Storage: * components are for the DOM APIs like IDB and localStorage that are built on top of them.

Hi Lina, I'm sorry, I didn't want to actually change that.
I was adding the needinfo assigned to Jan, but I got a mid-air conflict and I guess that by choosing to add my comment and needinfo then I did set back the bugzilla product and component where the issue was originally filed (which wasn't intended, and I'm changing it to the right one).

Component: Storage → Storage: localStorage & sessionStorage
Product: Toolkit → Core

No worries, I figured!

(In reply to Luca Greco [:rpl] [:luca] [:lgreco] from comment #2)

Hi Jan,
:mythmon is triggering this issue on Nightly, where LSNG is enabled by default, is there anything that we can ask Michael to try locally to be able to collect some additional useful information about this issue?

Hi Luca,
Yeah, it would be helpful if someone could run it in a debug build and attach console output (warnings, etc) to this bug.

And of course now I can't reproduce this, even in my original profile. If it happens again I'll try and get a debug log.

See Also: → 1649503

Yes, this is probably the same issue as in bug 1649503.

Flags: needinfo?(jvarga)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.