Re: [IndexedDB] Consider adding a completion event or callback to the IDBDatabase.close() operation (#72)

We need to differentiate between two scenarios:

1. There is an open connection, or multiple ones, but they are all marked as `closePending` - This is a crucial piece of information the browser has that _I don't have access to_.
2. There is at least one open connection, and it is not marked as `closePending`.

It seems reasonable to me `open` should trigger the `blocked` event at 1. but fail at 2. , otherwise, there is no way to differentiate between these two _very different_ scenarios, that may be treated very differently by the application. It doesn't seem very helpful to me if both of them trigger the `blocked` event, which in practice just neutralizes it and renders it less useful..

Unless I'm missing something?

---
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/72#issuecomment-199368820

Received on Monday, 21 March 2016 16:34:34 UTC