Ticket #10476 (closed bug: fixed)
Triggering 'focus' event causes 'Uncaught RangeError: Maximum call stack size exceeded'
| Reported by: | muratc@… | Owned by: | muratc@… |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | event | Version: | 1.7b1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
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.
Change History
comment:1 Changed 20 months ago by rwaldron
- Owner set to muratc@…
- Status changed from new to pending
- Component changed from unfiled to event
comment:2 Changed 20 months ago by dmethvin
- Status changed from pending to closed
- Resolution set to fixed
This definitely sounds like the Beta1 problem that's already been fixed. Thanks very much for testing! We'll have a fresh beta in the next couple of days for you to test, if you still see a problem please let us know.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

I'm almost certain this is a duplicate, but just in case it's not please provide a complete reduced test case on jsFiddle to help us assess your ticket!
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.