Side navigation
#9696 closed bug (worksforme)
Opened June 29, 2011 12:23PM UTC
Closed July 12, 2011 10:09AM UTC
requestAnimationFrame throws error in Firefox when animation is running while page gets unloaded
Reported by: | m.hermes@freiart.de | Owned by: | m.hermes@freiart.de |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | effects | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
firefox will throw:
"attempt to run compile-and-go script on a cleared scope" in case an animation (i.e. slideDown) is currently running while leaving/reloading the page.
In jquery.1.6.1.js (Line 8359
"if ( timerId ) {"
for now I worked around by simply disabling animationFrame support.
Tested in Firefox 4.0/OSX.6.8 & FF 5.0/Win7(64bit)
BR
Michael
Attachments (0)
Change History (6)
Changed June 29, 2011 02:01PM UTC by comment:1
component: | unfiled → effects |
---|---|
owner: | → m.hermes@freiart.de |
priority: | undecided → low |
status: | new → pending |
Changed June 29, 2011 02:40PM UTC by comment:2
status: | pending → new |
---|
Unfortunately I was unable to reproduce it on jsFiddle (btw. copy/paste would be great there ^^) but I uploaded a quick 'n simple demo to my dropbox account.
You can grap the 7z archive containing the html and jquery.1.6.1.js file here:
http://dl.dropbox.com/u/2358082/bug-demo.7z
The demo in test.html will automatically reload the page while the animation is running so that the error will be thrown. (attempt to run compile-and-go script on a cleared scope)
Hope it helps.
Changed June 29, 2011 02:48PM UTC by comment:3
OK, now I got it working on jsFiddle:
Changed June 29, 2011 02:58PM UTC by comment:4
Looks like it's only affecting FF4, not FF5.
Changed June 29, 2011 07:26PM UTC by comment:5
I'm not seeing errors in FF4 or FF5. Updated the fiddle to jQuery git:
Changed July 12, 2011 10:09AM UTC by comment:6
resolution: | → worksforme |
---|---|
status: | new → closed |
Tested across Firefox 4.0 and 5.0 and as per timmywil was unable to reproduce this issue. If you are able to supply additional test cases that we are able to confirm/reproduce we'll be happy to reinvestigate this issue further.
Thanks for taking the time to contribute to the jQuery project!
I created a test case, but was not able to reproduce the error in FF5: http://jsfiddle.net/timmywil/dRmgx/
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.