Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc
New issue 24237 by [email protected]: Removing event listener from inside
listener prevents other listeners from firing
http://code.google.com/p/chromium/issues/detail?id=24237
Chrome Version : 4.0.221.6
URLs (if applicable) : see attached file
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 4:
Firefox 3.x:OK
IE 7:
IE 8:
What steps will reproduce the problem?
1. Attach two event listeners to the same event.
2. Inside the handler for one, remove it as a listener.
What is the expected result?
The second listener should still fire.
What happens instead?
The second listener does not fire. It *does* fire for subsequent events.
Please provide any additional information below. Attach a screenshot if
possible.
Demonstration attached. On OK browsers it will display "#1 #2" and have a
green background. On failing browsers it will display "#1" and have a red
background.
Seems to be a recent regression:
3.0.195.25 works
4.0.213.1 works (second-hand report)
4.0.220.1 broken
4.0.221.6 broken
I've noticed some other event-related strangeness in the latest builds, but
this is the only one I've been able to isolate yet.
Attachments:
eventlistenerdemo.html 607 bytes
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---