Can Chrome delete my IndexedDB records when it runs out of free space?

708 views
Skip to first unread message

Juraj M.

unread,
Dec 28, 2023, 4:54:26 AM12/28/23
to Chromium Extensions
There has been some reports of users loosing data in their IndexedDB store when they accidentally run out of free space on their system drive.

Does Chrome clears the DB to free up space? Or is this a IO-kind of bug that breaks DB?
I know there are some quotas, but do they apply to extensions too?
https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria

Jackie Han

unread,
Dec 28, 2023, 5:01:29 AM12/28/23
to Juraj M., Chromium Extensions
This doc says https://developer.chrome.com/docs/extensions/develop/concepts/storage-and-cookies#storage-persistence
Screenshot 2023-12-28 at 17.59.47.png
(I'm not sure if the documentation is correct, it's hard to test.)

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/e8b95f5b-509b-4eba-ab62-dfc98c6f2e56n%40chromium.org.

Juraj M.

unread,
Dec 28, 2023, 5:21:06 AM12/28/23
to Chromium Extensions, Jackie Han, Chromium Extensions, Juraj M.
Thank you Jackie!
I don't have the "unlimitedStorage" permission, so this one is on me :(
Adding new permission now...

Jackie Han

unread,
Dec 28, 2023, 5:32:02 AM12/28/23
to Juraj M., Chromium Extensions
You're welcome.

wOxxOm

unread,
Dec 28, 2023, 6:14:20 AM12/28/23
to Chromium Extensions, Jackie Han, Chromium Extensions, Juraj M.
The documentation seems wrong about unlimitedStorage permission because https://crbug.com/1209236 is not yet fixed.

Juraj M.

unread,
Dec 28, 2023, 7:35:06 AM12/28/23
to Chromium Extensions, wOxxOm, Jackie Han, Chromium Extensions, Juraj M.
Thanks wOxxOm!
So, it looks like I'm removing new unlimitedStorage permission again :) and adding star to that issue, hoping it will make a difference :)

Jackie Han

unread,
Dec 28, 2023, 7:54:07 AM12/28/23
to Juraj M., Chromium Extensions, wOxxOm

Juraj M.

unread,
Dec 28, 2023, 8:05:42 AM12/28/23
to Chromium Extensions, Jackie Han, Chromium Extensions, wOxxOm, Juraj M.
:D, thanks again!
I guess I'm adding the unlimitedStorage after all :).
It won't hurt so I don't see why not.
Happy holiday everyone!

wOxxOm

unread,
Dec 28, 2023, 9:06:09 AM12/28/23
to Chromium Extensions, Juraj M., Jackie Han, Chromium Extensions, wOxxOm
The source code links indeed confirm unlimitedStorage works and judging by git blame it did so since 2014 https://crrev.com/308192. My mistake was that I misinterpreted https://crbug.com/1209236 as an assertion but it was just a question.

Reply all
Reply to author
Forward
0 new messages