Open Bug 897860 Opened 8 years ago Updated 3 years ago

calling removeEventListener during listener execution shall not remove it from the list


(Core :: DOM: Events, defect, P5)

21 Branch





(Reporter: ondras, Unassigned)


User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 (Beta/Release)
Build ID: 20130709093527

Steps to reproduce:

This simple code tries to remove a second listener, attached on the same node to the same event phase:

Actual results:

The listener was removed.

Expected results:

The listener shall not be removed. According to the spec, candidate listeners are unchangeable during their execution on a particular node/object. 

Note this works for addEventListener (new listener is not executed during this event, as expected).

Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.