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
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.openat 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