[w3c/IndexedDB] Specify timing of transaction deactivation more precisely (#87)

This occurs in two places:

(1) Calling `transaction()`: https://w3c.github.io/IndexedDB/#dom-idbdatabase-transaction

> (8) When control is returned to the event loop, the implementation must unset the active flag.

(2) Firing a `success` event: https://w3c.github.io/IndexedDB/#fire-success-event
> (2) Set the active flag of transaction.
> (3) Dispatch an event at request. ...
> (4) Unset the active flag of transaction.

In both of these cases the intent is that the deactivation occurs at the end of this "turn" of the event loop when control returns from script to the browser, but *after* any queued microtasks have been executed.

Is the spec text here precise enough, or can it be improved?


-- 
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/87

Received on Tuesday, 30 August 2016 20:44:29 UTC