[Webkit-unassigned] [Bug 66878] HTMLAudioElement can be garbage collected while it playing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 12 11:59:48 PDT 2011


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





--- Comment #36 from Adam Barth <abarth at webkit.org>  2011-10-12 11:59:47 PST ---
> I never worked with object groups, and heard that such thing exists only yesterday.

Basically they way it works is just before we run a GC, we can temporarily group objects together so that they're all collected together or not at all.  For example, that's who we keep CSSOM wrappers alive.  In this case, we'd associate event listeners with their Nodes.

There are trade-offs involved.  The approach you've got here pays a runtime and memory cost O(number of event listeners added/removed).  The GCController approach pays a runtime cost O(number of nodes) or something else if we're more clever.

I still think the right approach here is to fix HTMLAudioElement to not be GCed why playing and to worry about the event listener issue in a separate bug.  The event listener thing is subtle and needs to be done carefully.

It's unfortunate that we can't write a test for the HTMLAudioElement issue before fixing the event listener issue.  One way to handle that is to file a bug for adding the test that's blocked on the (new) event listener bug.  When we fix the event listener bug, we can land the test.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list