IndexedDB: Database enumeration should not include failed opens
When a database is first opened, metadata is written to the backing
store. This metadata is retained even if the open is eventually
aborted. This would show up when the (nonstandard) getDatabaseNames
method was used... such as by the inspector. The inspector would
then attempt to open the database and implicitly create it!
As a quick fix, ignore databases with the default version (this case)
when enumerating. A longer term fix would be to not write the metadata
separately from the upgrade transaction, but we must still cope with
stale metadata in existing backing stores.
BUG=395472
R=cmumford@chromium.org,dgrogan@chromium.org
Review URL: https://codereview.chromium.org/
429713002
Cr-Commit-Position: refs/heads/master@{#288826}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288826 0039d316-1c4b-4281-b951-d872f2087c98