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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 6 10:37:41 PDT 2011


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





--- Comment #12 from Eugene Nalimov <enal at google.com>  2011-10-06 10:37:40 PST ---
I tried to use ActiveDOMObject .idl attribute, in the past 2 days I
learned much more about Perl or our .idl files parser than I ever
wanted to know. Unfortunately, that is not easy -- I added comment
explaining problem and (hard) way it can be attacked. Main problem is
that Perl is not the right language to do semantic analysis, full type
info may be unavailable when we need it.

About listener: yes, technically that is unrelated problem, but for
game developer it does not matter if player itself or "only" listener
object was unexpectedly collected. Again, I do't see easy way to do
all the magic in the listener -- we should do actions when
adding/removing listeners to the events source, and code that does
that is auto-generated, so we have to edit generator every time new
type needs those actions. I could reuse existing mechanism used by
other types (hidden dependencies, object has to have extra slot to
keep array of those pointers), but it will grow each and every "node",
while absolute majority of those objects would never have listener
attached. So I used slightly different approach.

Will send new patch after taking care of qt problem...

Thanks,
Eugene

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