Open Bug 1543620 Opened 6 years ago Updated 2 years ago

Find all used event listeners and their elements by event name

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: masayuki, Unassigned)

References

(Blocks 1 open bug)

Details

Currently, DOM team and QA team need to investigate whether each major web site uses new event's event listener or not. Additionally, when I investigate some DOM Event related web-compat issues, I usually look for event listeners from each popup by my hand.

Therefore, I'd like to suggest that there should be a find UI to look for specific event listeners, e.g., with typing "keypress".

Bug 1492846 is similar to this bug, but it must be useful when I investigate specific symptom, but not useful for the former case.

Summary: Needs find API or something of event listeners → Needs find UI or something of event listeners

Thanks for the report!

If I understand correctly you looking for a feature that would allow the user to:

  1. See list of all existing event listeners on the page (not only for selected element/DOM node)
  2. Filter the list using an event type (e.g. 'keypress').

Honza

Flags: needinfo?(masayuki)
Priority: -- → P3

Exactly. When DOM team implements new event, adding new event would break something in major web apps because of partially UA checked in event listeners for legacy events. Such UI is really useful when we investigate whether specific app uses listen to new event actually.

Flags: needinfo?(masayuki)
Summary: Needs find UI or something of event listeners → Find all used event listeners and their elements by event name
See Also: → 1559813
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.