[Bug 25223] IDB exposes GC behavior

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25223

--- Comment #3 from Joshua Bell <jsbell@google.com> ---
I noticed that XHR deals with this explicitly:

https://xhr.spec.whatwg.org/#garbage-collection

"An XMLHttpRequest object must not be garbage collected if..."

Chromium doesn't allow GC unless closePending or it has no event listeners. I
believe FF does something similar (or maybe never GCs open databases?)

So we could add wording such as:

"An IDBDatabase object must not be garbage collected if its closePending flag
is false and it has one or more event listeners registers whose type is one of
abort, error, and versionchange."

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 29 September 2014 20:45:44 UTC