Skip to content

Commit ee73e87

Browse files
Do not include databases with version 0 in databases() results (#448)
When a database is first created it is treated as an upgrade from version 0 to the new version (the default is 1). Per WPT, all implementations exclude these in-progress databases from the enumeration returned by databases(), so reflect this in the algorithm steps.
1 parent 1b311f3 commit ee73e87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2338,6 +2338,7 @@ The <dfn method for=IDBFactory>databases()</dfn> method steps are:
23382338

23392339
1. [=set/For each=] |db| of |databases|:
23402340

2341+
1. If |db|'s [=database/version=] is 0, then [=iteration/continue=].
23412342
1. Let |info| be a new {{IDBDatabaseInfo}} dictionary.
23422343
1. Set |info|'s {{IDBDatabaseInfo/name}} dictionary member to |db|'s [=database/name=].
23432344
1. Set |info|'s {{IDBDatabaseInfo/version}} dictionary member to |db|'s [=database/version=].
@@ -6716,6 +6717,7 @@ For the revision history of the second edition, see [that document's Revision Hi
67166717
* Specified the {{DOMException}} type for failures when reading a value from the underlying storage in [[#object-store-retrieval-operation]]. (<#423>)
67176718
* Updated [=convert a value to a key=] to return invalid for detached array buffers. (<#417>)
67186719
* Updated {{IDBFactory/open()}} to set its request's [=request/processed flag=] to true.
6720+
* Don't include databases that aren't done being created in {{IDBFactory/databases()}}. (<#442>)
67196721

67206722
<!-- ============================================================ -->
67216723
# Acknowledgements # {#acknowledgements}
@@ -6786,6 +6788,7 @@ Pablo Castro,
67866788
Philip Jägenstedt,
67876789
Shawn Wilsher,
67886790
Simon Pieters,
6791+
Steffen Larssen,
67896792
Steve Becker,
67906793
Tobie Langel,
67916794
Victor Costan,

0 commit comments

Comments
 (0)