Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

IndexedDB content from extension suddenly deleted

141 views
Skip to first unread message

Milden Jungs

unread,
Mar 17, 2025, 10:13:16 AMMar 17
to Chromium Extensions
Hi, I am developing a Chrome extension which saves data in IndexedDB. Today I noticed that the whole data was removed from IndexedDB and it was emtpy. I did not delete the cache or removed the extension. What happened? This also applies to other users of my extension.

woxxom

unread,
Mar 17, 2025, 6:12:51 PMMar 17
to Chromium Extensions, Milden Jungs
Some known reasons:
  • a mistake in the code
  • a bug in the browser
  • an external tool like CCleaner
  • no free space on the drive
  • disk failure

Juraj M.

unread,
Mar 18, 2025, 2:56:25 AMMar 18
to Chromium Extensions, woxxom, Milden Jungs
You can add "unlimitedStorage" to your manifest file to prevent eviction:
But yeah, the implementation is a bit buggy and data may still disappear for a various reasons listed above :)

Milden Jungs

unread,
Mar 18, 2025, 5:17:54 AMMar 18
to Chromium Extensions, Juraj M., woxxom, Milden Jungs
Thanks for your responses. I added the "unlimitedStorage" permission to my manifest (together with the "storage" permission") but when I check with navigator.storage.estimate(), I can see that the quota stays the same (12165714186) and it does not appear to be unlimited. I also checked the properties of my IndexedDB database in dev tools and I saw that "Is persistent" is set to "No" (see screenshot). Is this the issue? How can I change that?

indexeddb.PNG

woxxom

unread,
Mar 18, 2025, 9:19:40 PMMar 18
to Chromium Extensions, Milden Jungs, Juraj M., woxxom
It's always like that for extensions.

Milden Jungs

unread,
Mar 19, 2025, 11:24:30 AMMar 19
to Chromium Extensions, woxxom, Milden Jungs, Juraj M.
Okay, nice to hear. Does that mean there is no way to actually check if the "unlimitedStorage" permission works?
Reply all
Reply to author
Forward
0 new messages