[Webkit-unassigned] [Bug 60269] [Windows, WinCairo] Implement ability to add C++ event listeners to html dom elements and dom window

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 5 12:48:22 PDT 2011


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





--- Comment #4 from Geoffrey Garen <ggaren at apple.com>  2011-05-05 12:48:21 PST ---
(In reply to comment #3)
> Obviously, the most difficult part here is getting object lifetime issues right. 

This biggest potential lifetime problem is that the listener may create a reference cycle, if the listener object directly or indirectly references the event target.

This problem is unique to reference counted environments -- GC can break cycles; reference counting cannot.

> I think that DOM JS garbage collection relies on listeners being JavaScript objects.

This shouldn't be a problem. We already support a bunch of non-JS listener types. Search for "public EventListener" to see them all.

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