Closed Bug 512362 Opened 15 years ago Closed 14 years ago

clearInterval does not function correctly within a web worker.

Categories

(Firefox :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: peterbraden, Unassigned)

References

()

Details

(Whiteboard: [CLOSEME 2011-1-1])

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2

clearInterval has no effect within a web worker - it does not clear the specified interval.

Unfortunately, my code is not ready for launch yet, so I can't show you.

Reproducible: Always

Steps to Reproduce:
1.I think you'd have to create a web worker and experiment with intervals within it.
2.
3.



It can be worked around by manually setting a boolean value and checking within the interval, however this means that the interval persists, and in my code which generates intervals programmatically, after a while this builds up.
Reporter, are you still seeing this issue with Firefox 3.6.12 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Also, please consider using the most recent Firefox 4 beta build, your bug may be resolved there.
Whiteboard: [CLOSEME 2011-1-1]
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.