Closed Bug 671600 Opened 13 years ago Closed 13 years ago

Firefox 5 Javascript issue

Categories

(Firefox :: General, defect)

5 Branch
All
Other
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: cihanuygun, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; tr; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18 GTB7.1 ( .NET CLR 3.5.30729; .NET4.0C)
Build ID: 20110614230723

Steps to reproduce:

Hello,

I have coded a small slider with jQuery and my slider works well on all browsers out of FF5. When I open the page in FF5 and open several tabs (my page is in the inactive tab) or my firefox is minimized when i return to my page my slider goes mad. 

You can check it here : http://test.elmalma.com/polotravel.org/
Sounds like it has something to do with "Background tabs have setTimeout and setInterval clamped to 1000ms to improve performance"
http://www.mozilla.com/en-US/firefox/5.0/releasenotes/
https://developer.mozilla.org/en/DOM/window.setTimeout#Inactive_tabs
Infacact i try to user setTimeout but it fails again, when i use setTimeout info bar not seem ayn more :S
It sure could.  A pointer to exactly where the slider is run from would be useful here.  If you're using animate(), see also the second note at http://api.jquery.com/animate/#notes-0
And note that we _did_ change the clamping on requestAnimationFrame from 4 to 5.

Also note that Chrome shows the same behavior we do, probably for the same reasons.
Reproduced:
Mozilla/5.0 (X11; Linux x86_64; rv:8.0a1) Gecko/20110714 Firefox/8.0a1

Last good nightly: 2011-03-23
First bad nightly: 2011-03-24

Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=774ec081a9c1&tochange=741701875aec
I have solved that issue with window.focus function with jQuery.

Thanks
Sounds like the jQuery thing, then, though the regression range doesn't really make sense....
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.