Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quota of LocalStorage exceeded #43

Open
christianrank opened this issue Oct 6, 2023 · 1 comment
Open

Quota of LocalStorage exceeded #43

christianrank opened this issue Oct 6, 2023 · 1 comment

Comments

@christianrank
Copy link

I have around 380 Tabs saved in about 10 windows, which should be absolutely no problem, but suddenly the extension stopped working completely.

Error handling response: Error: Failed to set a named property on 'Storage': Setting the value of 'Window' exceeded the quota.
    at storeWindow (chrome-extension://fpfmklldfnlcblofkhdeoohfppdoejdc/background.js:149:22)
    at saveWindow (chrome-extension://fpfmklldfnlcblofkhdeoohfppdoejdc/background.js:133:3)
    at chrome-extension://fpfmklldfnlcblofkhdeoohfppdoejdc/popup.js:93:36

It should use another way of storage, LocalStorage is not made for anything this large.

@elcoms
Copy link

elcoms commented Aug 27, 2024

Could be solved if we could allow unlimitedStorage for this extension

Note: The chrome.storage.local can only store a limited amount. Can you check if the saved data is not higher than this quota bytes:
QUOTA_BYTES 5242880
The maximum amount (in bytes) of data that can be stored in local storage, as measured by the JSON stringification of every value plus every key's length. This value will be ignored if the extension has the unlimitedStorage permission. Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError.
Source: https://developer.chrome.com/docs/extensions/reference/storage/#property-local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants