Ticket #10476 (closed bug: fixed)
Triggering 'focus' event causes 'Uncaught RangeError: Maximum call stack size exceeded'
|Reported by:||muratc@…||Owned by:||muratc@…|
Firefox 7 even crashes. You can reproduce this with ui.dialog, where the method moveToTop contains a trigger call for the focus event. Just open the dialog and click on it: the mousedown event handler now calls moveToTop > which calls widget._trigger > which calls jQuery.trigger > which leads to an infinite event loop.