[Webkit-unassigned] [Bug 154015] Modern IDB: Ref-cycles and leaks

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 8 16:50:13 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=154015

--- Comment #1 from Brady Eidson <beidson at apple.com> ---
I'll be exploring this bit by bit to come up with the best lifetime strategy and logging my findings here.

First finding that directs future exploration:
On a very basic test page that:
-opens a new database
-creates one object store
-lets the transaction finish
-navigates away to a new page

...The IDBOpenDBRequest remains alive with a ref-count of 1. The holder of that ref is the IDBTransaction that represents the version change transaction.

Additionally, there's a circular reference between the IDBOpenDBRequest and the IDBTransaction.

The transaction doesn't need the request anymore after the last event has fired, so that ref should be broken, which would break the ref on the transaction itself.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160209/f8537d29/attachment-0001.html>


More information about the webkit-unassigned mailing list