[Webkit-unassigned] [Bug 17429] Inspector should show event listeners/handlers registered on each node

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 25 19:26:48 PDT 2009


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





--- Comment #8 from Joseph Pecoraro <joepeck at webkit.org>  2009-08-25 19:26:47 PDT ---
Created an attachment (id=38586)
 --> (https://bugs.webkit.org/attachment.cgi?id=38586)
[IMAGE] Showing like ObjectProperties

I played around with this a little to start a UI and just made the most basic
UI that I could, making another ObjectPropertiesSection.  I think I will
probably make a nicer UI, but first we should discuss what data we want to make
available.  This is what I currently have:

Need not be shown:
- ancestorDepth: would be 0 on the inspected node, and 1..2..3.. for parents to
check bubbling
- index: index in Node.h's Vector, presumably affects the order they are fired,
used in sorting

Shown to the User:
- isAttribute: eventListener set on the attribute: elem.onclick = function()
{...}
- listener: the function itself: elem.addEventListener(..., func, ...);
- type: the event type: elem.addEventListener(type, ..., ...);
- useCapture: fire on the capturing phase: elem.addEventListener(..., ...,
true);

Things I think we might want to show:
- function display name like the JavaScript Profiler displays
- the node/element its attached to in the case of "surrounding" nodes

Then its just a matter of making a UI for this.  One that would allow some sort
of interaction with the listeners to remove them or display/work with them in
the console.

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