Closed
Bug 630858
Opened 14 years ago
Closed 2 years ago
Possibility to retrieve a list of indexedDB-using URIs from script
Categories
(Core :: Storage: IndexedDB, enhancement, P5)
Core
Storage: IndexedDB
Tracking
()
RESOLVED
INVALID
People
(Reporter: kairo, Unassigned)
References
Details
I'm trying to get a web storage view into Data Manager (add-on / SeaMonkey built-in), see bug 588415, and for doing such a management UI in chrome, I'd need a possibility to get a list of all URIs using indexedDB - from there, the current methods of nsIIndexedDatabaseManager do the rest that's needed, like getting usage or deleting the DB, but without even knowing which databases are stored in the user's browser, it doesn't help much if I can let him operate on them. ;-)
khuey says on IRC: you want to be able to enumerate the hashtable at http://mxr.mozilla.org/mozilla-central/source/dom/indexedDB/IndexedDatabaseManager.h#221
Of course, all I know is JS, so I can't directly access this hashtable, could we have a method for this added to nsIIndexedDatabaseManager?
Reporter | ||
Comment 1•14 years ago
|
||
Oh, and just as a note (haven't checked yet, as I'm not there with my implementation yet), if there's no events one can observe for adding/removal/etc. of indexed databases, we probably want them as well, just like cookies, permissions, passwords, etc. have them. This may be yet another bug, though.
(In reply to comment #0)
> khuey says on IRC: you want to be able to enumerate the hashtable at
> http://mxr.mozilla.org/mozilla-central/source/dom/indexedDB/IndexedDatabaseManager.h#221
That hash only contains databases that are live in memory, not all that have ever been created on disk, so I don't think that's actually what you want.
Severity: normal → enhancement
Yeah, I think the only way to do this would be to get a directory listing of the directory where we stick all indexedDB database directories. There is no central repository of all databases ever created.
Reporter | ||
Comment 4•14 years ago
|
||
OK, good to know. Still I think it would be better if we had a method on nsIIndexedDatabaseManager that does this instead of needing to do that on the "consumer" side and scrape domain names from the directory names.
Component: DOM: Core & HTML → DOM: IndexedDB
Version: Trunk → unspecified
Updated•7 years ago
|
Priority: -- → P5
Updated•2 years ago
|
Severity: normal → S3
Comment 5•2 years ago
|
||
This bug has been mooted by APIs exposed to devtools or additional logic implemented in devtools that polyfills mechanisms like enumerating databases.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•