Bug Tracker

Opened 12 years ago

Closed 12 years ago

#9435 closed bug (cantfix)

javascript error while reloading during animation

Reported by: JorisDebonnet Owned by: JorisDebonnet
Priority: low Milestone: 1.next
Component: effects Version: git
Keywords: Cc:
Blocked by: Blocking:

Description

It's really nothing serious, but something very slightly goes wrong, so I thought I'd just report it.

When you reload a page that is currently doing an animation, you get a javascript error. Probably because jQuery is still trying to reference something for the animation that has disappeared in the meanwhile.

Since the 'reloaded' page works as it should, it's certainly not a big thing. Only that I get red messages in some addons that are tracking errors.

It may be easy to fix though, although I'm not sure whether it would cause any performance issues (if an additional check is required on every step).

http://jsfiddle.net/7nPTw/1/

The 'error' happens on current line 8400, where it merely says:

if ( timerId )

Change History (7)

comment:1 Changed 12 years ago by Rick Waldron

Component: unfiledeffects
Owner: set to JorisDebonnet
Status: newpending

I see an illegal invocation error caused by your setTimeout trying to execute location.reload

comment:2 Changed 12 years ago by Rick Waldron

Is this in a particular browser? I've tested all of them after removing your setTimeout and I see no errors.

http://jsfiddle.net/rwaldron/7nPTw/3/show/

comment:3 Changed 12 years ago by JorisDebonnet

Status: pendingnew

Do you reload the page though?

Here's a slightly changed version where you can reload by clicking the button (but you can of course just reload the page/frame yourself):

http://jsfiddle.net/7nPTw/4/

I see the errors appear in Firebug and in Webdeveloper Toolbar, in Firefox 4.

comment:4 Changed 12 years ago by JorisDebonnet

The error is: "attempt to run compile-and-go script on a cleared scope".

comment:5 Changed 12 years ago by dmethvin

Status: newpending

I've verified this, but it looks like a bug in Firefox to me. Seems like FF must not be stopping the timer. It's beyond our abilities to control I would think. Can you report it to Mozilla?

comment:6 Changed 12 years ago by JorisDebonnet

Status: pendingnew

You probably have a point. I have reported it as a Firefox bug right here: https://bugzilla.mozilla.org/show_bug.cgi?id=661405

Let's see what they say :)

comment:7 Changed 12 years ago by addyosmani

Priority: undecidedlow
Resolution: cantfix
Status: newclosed

As this is an issue with Firefox itself and is currently beyond the scope of our ability to fix, the ticket is being closed as cantfix. Should we however discover at a later point that there is a core patch that can be applied to fix the behaviour experienced, please feel free to re-open.

Note: See TracTickets for help on using tickets.