Open Bug 1731519 Opened 4 years ago Updated 3 months ago

localStorage.* cause DOMException: The quota has been exceeded

Categories

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

Firefox 92
defect

Tracking

()

UNCONFIRMED

People

(Reporter: caiiiycuk, Unassigned)

Details

(Whiteboard: dom-lws-bugdash-triage )

Attachments

(3 files)

Attached image 1-error.jpg

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0

Steps to reproduce:

  1. Open my dev site on localhost
  2. It throws DOMException: The quota has been exceeded
  3. I trying to do localStorage.clear() in console, it throws DOMException: The quota has been exceeded
  4. Any method of localStorage throws DOMException: The quota has been exceeded
  5. Devtoold didn't show any localstorage, indexed db for localhost

Actual results:

localStorage throws DOMException: The quota has been exceeded

Expected results:

localStorage should allow to call at least clear() method, or how else I can clean it?

Attached image 2-error.jpg

The Bugbug bot thinks this bug should belong to the 'Core::Storage: Quota Manager' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Storage: Quota Manager
Product: Firefox → Core

The severity field is not set for this bug.
:asuth, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(bugmail)

Hello,
please check this Bug reported too regarding the "The quota has been exceeded"
https://bugzilla.mozilla.org/show_bug.cgi?id=1715505

i think it's related!
thanks

Component: Storage: Quota Manager → Storage: localStorage & sessionStorage
Flags: needinfo?(bugmail)

This could potentially involve problems with other dev sites on "localhost" on other ports. Can you use https://support.mozilla.org/en-US/kb/clear-cookies-and-site-data-firefox#w_clear-cookies-for-any-website to see what the aggregate usage is for "localhost" and potentially try clearing the origin (which will also clear the group).

Severity: -- → S3
Flags: needinfo?(caiiiycuk)
Priority: -- → P3
Attached image cookies.png

Thanks! This helped me. Size was 1.4 Gb, but I think this was not only cookie but also indexed db. Anyway now it works.

Flags: needinfo?(caiiiycuk)

There’s still a chance that clear() might throw an error if there’s data in the archive file (created by the old LS implementation) and we attempt to migrate that data during database preparation for a child process. This is a rare edge case, but the bug still exists. The good news is we plan to remove the migration, as LSNG has been enabled for several years now and all data should have been migrated by this point.

Whiteboard: dom-lws-bugdash-triage
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: