Skip to content

The steps for opening a database are racy #81

Description

@nox

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions