Closed
Bug 661405
Opened 14 years ago
Closed 8 years ago
javascript error if reloading while timer is active
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: bugzilla, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
I reported it first at jQuery, but they believe it is rather a Firefox problem.
If I reload a page while it's doing an animation, I get a javascript error right after the reload: "attempt to run compile-and-go script on a cleared scope". This could be because the javascript timers are not all aborted in time.
Reproducible: Always
Steps to Reproduce:
1. Go to my jsFiddle at http://jsfiddle.net/7nPTw/4/ (and have an error catcher open; I use Firebug).
2. Click the red square. Then click the button.
3. Marvel at the error report (even though you're looking at a brand new page)
Actual Results:
The page was refreshed, all new and fresh, but we get a javascript error due to the 'previous' page.
Expected Results:
The previous page and its javascript should in no way influence the errors in the reloaded page.
Updated•14 years ago
|
Version: unspecified → 4.0 Branch
Can you see if Bug 651465 already covers your problem?
Reporter | ||
Comment 2•14 years ago
|
||
Hm, not completely, since in Bug 651465 the document is dynamically changed with Javascript, whereas in this case there is a "real" refresh. I would say it may be understandible that timers are still active while dynamiccaly changing the document, but not if the document is completely reloaded by the browser. It may be that to the engine, this is the same thing though; I'm only talking about what it looks like from the outside of course.
In any case it's similar of course, and the discussion in Bug 635548 is probably also relevant to this one (but the discussion there is too technical for me).
Reporter | ||
Comment 3•8 years ago
|
||
Looks like this is fixed.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•