[Webkit-unassigned] [Bug 77835] [GObject bindings] Missing scope annotations for add/remove_event_listener

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 12 02:27:36 PST 2012


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


C Anthony <anthony at xtfx.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #126674|test case (stable id)       |test case (stable listener
        description|                            |id)




--- Comment #19 from C Anthony <anthony at xtfx.me>  2012-02-12 02:27:37 PST ---
(From update of attachment 126674)
after being completely baffled for about 2-3 hours (and i still don't really understand why) ... i realized that the callback id() was changing after every use (as you alluded Zan) because i was using an instance method as a callback.

i don't really know why it's an issue, but it's not just add/remove, or even webkit ... connecting to a gsignal does the same thing! i think it was happening because there were still live references to the callback after it ended, and a new one was created each time?

no idea.  this file uses dedicated callback classes which don't seem to be affected ... and i can store a ref to them just fine, very odd.

i think this will allow us to get a handle to the real callback, but i think it needs to be passed as a raw pointer, otherwise pygobject [i think] creates a new callback.

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