Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Eventbug actually works

Eventbug is a add-on for Firebug (yes, add-on for add-on), which is aimed to track all events assigned to DOM elements.

The question is - how it actually works? Since, generally speaking, there is no way, at least as far as I know, to get the list of attached events in W3C event model.

Can somebody who already explored this issue tell me something about the basic idea underneath. Is it redefining addEventListener in global scope or something?

like image 526
shabunc Avatar asked Aug 31 '11 09:08

shabunc


1 Answers

It is using nsIEventListenerService which is an internal API available to Firefox add-ons. In fact, it has been introduced specifically for Firebug, see bug 448602.

like image 123
Wladimir Palant Avatar answered Oct 21 '22 18:10

Wladimir Palant