Ticket #8850 (closed bug: worksforme)
resize events crashes on firefox 4
| Reported by: | webmaster@… | Owned by: | webmaster@… |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | event | Version: | 1.5.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
In Firefox 4 calling any function on $(window).resize(), even an alert, crashes the browser
Change History
comment:1 Changed 2 years ago by addyosmani
- Owner set to webmaster@…
- Status changed from new to pending
comment:2 Changed 2 years ago by rwaldron
- Status changed from pending to closed
- Resolution set to worksforme
- Component changed from unfiled to event
Tested in FF 3.6, 4.0, 4.2a1pre
comment:3 Changed 2 years ago by originof
For me a simple page like http://pastebin.com/DTpcwLKy crash firefox 4
comment:4 follow-up: ↓ 5 Changed 2 years ago by timmywil
Alerts stop execution, but will still be continually added to the stack on every resize. It is best not to do that. Use console.log for debugging. http://fixingthesejquery.com/#slide3
comment:5 in reply to: ↑ 4 Changed 2 years ago by brice@…
Actually, alert in a resize event crashes firefox 4 (probably due to the new alert window in js). console.log or whatever else function work correctly,
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on http://jsFiddle.net that reproduces the issue experienced to help us assess your ticket!
Additionally, test against the jQuery (edge) version to ensure the issue still exists.