[w3c/IndexedDB] The steps for opening a database are racy (#81)

If two separate event loops in the same origin queue a task for [opening a database](https://w3c.github.io/IndexedDB/#steps-for-opening-a-database) that didn't exist before in step 3 of [`IDBFactory.open`](https://w3c.github.io/IndexedDB/#dom-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

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/81

Received on Tuesday, 12 July 2016 14:34:06 UTC