This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12016 - After page unload, all IDBDatabases attached to the document should have .close() called on them
Summary: After page unload, all IDBDatabases attached to the document should have .clo...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Indexed Database API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-08 21:03 UTC by Jeremy Orlow
Modified: 2011-03-08 00:52 UTC (History)
3 users (show)

See Also:


Attachments

Description Jeremy Orlow 2011-02-08 21:03:36 UTC
After page unload, all IDBDatabases attached to the document should have .close() called on them.

See "[IndexedDB] setVersion blocked on uncollected garbage IDBDatabases" for more backstory.
Comment 1 Glenn Maynard 2011-02-10 01:24:28 UTC
The same applies to workers.  If the last document on a worker's list of documents is discarded, or a worker is killed or terminated for any reason, all databases opened by the worker should be closed deterministically without waiting for garbage collection.
Comment 2 Jeremy Orlow 2011-03-08 00:52:28 UTC
This is already specced, actually.