You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If two separate event loops in the same origin queue a task for opening a database that didn't exist before in step 3 of IDBFactory.open at the same moment, can't step 4 (If db is null, let db be a new database with name name, version 0 (zero), and with no object stores) of the former algorithm create two databases with the same name in the same origin? Shouldn't the spec have prose to prevent that race condition?
Yes, this is related to #78 and #79 - the queue that open (and delete) requests are made against is not an event loop, but an abstract queue of open/delete requests associated with an (origin, name) tuple.
Also:
* Remove 'delete pending' flag which is not longer needed.
* Simplify some section names.
* Move the versionchange/blocked logic from upgrade steps to
open steps, for symmetry with delete steps.
* Rename 'Authorization' section to 'Security Concerns'
If two separate event loops in the same origin queue a task for opening a database that didn't exist before in step 3 of
IDBFactory.open
at the same moment, can't step 4 (If db is null, let db be a new database with name name, version 0 (zero), and with no object stores) of the former algorithm create two databases with the same name in the same origin? Shouldn't the spec have prose to prevent that race condition?Cc @bakulf
The text was updated successfully, but these errors were encountered: