- From: beidson <notifications@github.com>
- Date: Fri, 24 Jun 2016 21:48:58 -0700
- To: w3c/IndexedDB <IndexedDB@noreply.github.com>
- Cc:
- Message-ID: <w3c/IndexedDB/issues/79/228512051@github.com>
> Chrome is following the letter of the spec, that in "steps for deleting a database" the "delete pending flag" is set immediately (no waiting) In v1 of the spec the language for deleteDatabase is "The method then queues up an operation to run the steps for deleting a database" In v2 of the spec the language for deleteDatabase is "Queue a task to run these substeps:...Let result be the result of running the steps for deleting a database" In both cases the "steps for deleting a database" are queued and run asynchronously. In neither case is the "delete pending flag" set immediately. So the example code actually does the following: indexedDB.open - "The method then queues up an operation to run the steps for opening a database." indexedDB.open - "The method then queues up an operation to run the steps for opening a database." indexedDB.deleteDatabase - "The method then queues up an operation to run the steps for deleting a database." There's no mention of setting the "delete pending flag" anytime before the steps for deleting a database are executed. Trunk WebKit and Firefox treat these as a queue as mentioned above, and I think they're right. --- 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/79#issuecomment-228512051
Received on Saturday, 25 June 2016 04:49:47 UTC