This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16137 - IndexedDB: Add API for enumerating databases
Summary: IndexedDB: Add API for enumerating databases
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Indexed Database API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: public-webapps-bugzilla
Depends on:
Reported: 2012-02-27 18:39 UTC by Joshua Bell
Modified: 2015-08-10 20:21 UTC (History)
5 users (show)

See Also:


Description Joshua Bell 2012-02-27 18:39:11 UTC
This was proposed and discussed in this thread:

Plunking this in the bug database so we can track interest/objections/alternate proposals. Discussion stalled on the thread, but continued interest has been expressed offline.

Chrome has implemented this as webkitIndexedDB.getDatabaseNames() in response to user requests; the primary uses cases are for application debugging and diagnostics for deployed web apps. Tools like the Web Inspector which provide an interactive means of exploring local IDB instances address the former use case, but not the latter.
Comment 1 Odin Hørthe Omdal 2012-02-27 23:36:09 UTC
Agreed that this can be useful. I think it shouldn't use DOMStringList, as currently there's a want to remove those in favour of Arrays :-)

It'd be interesting to be able to get some guarantees, but this proposal is very easy to implement. Has anyone any good ideas how a guaranteed getDatabaseNames() would work?
Comment 2 Jonas Sicking (Not reading bugmail) 2012-03-02 04:01:30 UTC
Yup. Agreed that we should definitely do this, but for v2. I think it should be totally doable to specify and implement in such a manner that it fulfills the requirements in

Filing away with the other v2 bugs.
Comment 3 Joshua Bell 2012-07-09 16:04:55 UTC
Just for posterity, in case anyone goes looking:

Since there was no consensus to add this API, the Chrome API is currently prefixed as webkitGetDatabaseNames() - still hanging off the IDBFactory object.
Comment 4 Joshua Bell 2015-08-10 20:21:18 UTC
Moved to