If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Updating IMG SRC via JS sometimes doesn't animate GIF

NEW
Unassigned

Status

()

Core
ImageLib
5 years ago
5 months ago

People

(Reporter: R, Unassigned)

Tracking

Trunk
x86_64
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

5 years ago
Created attachment 631282 [details]
chart.html

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0
Build ID: 20120601045813

Steps to reproduce:

On clicking (an image) that updates another (existing) IMG element's SRC to an animated GIF the images often don't animate.

[Windows 7 Home 64-bit]


Actual results:

The attached sample displays 3 different GIF images depending on where in the white space above you click. For about the left 100 pixels it should display an animated globe, for the next 100 pixels across it should display an animated 7-segment display and for elsewhere it should display a static GIF.

Possibly related to https://bugzilla.mozilla.org/show_bug.cgi?id=756367


Expected results:

The GIFs should animate

Updated

5 years ago
Attachment #631282 - Attachment description: chart.htm → chart.html
Attachment #631282 - Attachment filename: chart.htm → chart.html
Attachment #631282 - Attachment mime type: text/plain → text/html

Updated

5 years ago
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
QA Contact: untriaged → general
Worksforme in a Mac nightly...
Component: DOM: Core & HTML → ImageLib
QA Contact: general → imagelib
(Reporter)

Comment 2

5 years ago
(In reply to Boris Zbarsky (:bz) from comment #1)
> Worksforme in a Mac nightly...

Tried it at home now, Win XP 32 (instead of Win 7 64) and it has the same problem. Usually the first time you click in the white area to display one of the two animated images it will work but very often (almost always by about the 3rd-5th image change) it will stop animating (particularly the second 7-segment animation) so its very repeatable.

This affected one of the clients at work who complained that sometimes the images I change don't animate but I couldn't find anything wrong with what I'm doing.
I was able to hit this a 2 times in Linux x86_64 nightly (along with a few times in Firefox 13).

The times that I hit it, I clicked towards the middle of the rectangle, triggering the 7-segment display, and then I clicked a little towards the left, triggering the globe.

When the globe showed up, it wasn't animating.

If I then right-click the globe, do "copy image location", and open that URL in a new tab, then both globes (the original one and the one in the new tab) will begin to animate.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 7 → All
Version: 13 Branch → Trunk
My nightly info:
  Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/16.0 Firefox/16.0a1
  Built from http://hg.mozilla.org/mozilla-central/rev/983b91e5aa17
Created attachment 633574 [details]
screencast
You need to log in before you can comment on or make changes to this bug.