Allow extensions to check if event target has default handlers

NEW
Unassigned

Status

()

Core
DOM: Events
--
enhancement
9 years ago
8 years ago

People

(Reporter: pmbmo1, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009020407 Iceweasel/3.0.6 (Debian-3.0.6-1)
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009020407 Iceweasel/3.0.6 (Debian-3.0.6-1)

It would be nice to allow FF extensions to check if a given event target has a default handler. For example, see if a <div> tag has an onclick handler set, or similar.

Reproducible: Always
Component: General → DOM: Events
Product: Firefox → Core
QA Contact: general → events
OS: Linux → All
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 1

9 years ago
Can you give an example of what you might use this for?
(Reporter)

Comment 2

9 years ago
sure.
Picture a testing environment that monitors a sites' reaction to click events. In order to keep the clicks at the necessary minimum one has to determine which elements will react to clicks. Thus, in such cases this feature is necessary. (I'm talking about real clicks here not just click events generated via createEvent())
You need to log in before you can comment on or make changes to this bug.