Closed Bug 1292074 Opened 8 years ago Closed 8 years ago

Gif animation dont loop or replay if they are loadet again

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

48 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 129986

People

(Reporter: tobiasdreissig, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0
Build ID: 20160726073904

Steps to reproduce:

Small Gif animated icons in the menu are loadet and should play on mouseover. 


Actual results:

Allready used Gif animations dont play from the begining. Insted they only show their last picture. 


Expected results:

Gif animations should start from the begining each time they are used.
Workes in Google Chrome, Safari and Edge but not in Firefox.
Endless Gif Animations as the fire should play endless as in Google Chrome, Safari and Edge.
Component: Untriaged → Layout: Images
Product: Firefox → Core
Whiteboard: Gif animation dont loop or replay if they are loadet again
There is a work around to load "new" gif files insted of using the onld one from the cache: onmouseover="javascript:document.images['bild'].src=image.gif?rand='+d.getTime();"
This is a truly ancient bug: bug 129986. I'm going to dupe this. Work is underway that should make it possible to fix this, but we're not there yet.

(In reply to Tobi from comment #3)
> There is a work around to load "new" gif files insted of using the onld one
> from the cache:
> onmouseover="javascript:document.images['bild'].src=image.gif?rand='+d.
> getTime();"

This is not a workaround I'd recommend. You're actually reloading the image *from the server* every time the user mouses over it. I would strongly consider encoding the animation as a video instead and using a <video> element.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Whiteboard: Gif animation dont loop or replay if they are loadet again
Yes thanks but this wasnt there 12 years ago. I allways thought FF is not replaying gif animations on purpose to stop blinking advertisement but scince Adblock these days this is not an issue anymore. Yes may be the new HTML5 <video> element is better but also way more complicate. All the other browsers are doing fine with the old gifs. 

 <video width="32" height="24" autoplay>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
Another bug? <video> is not autoplaying https://bugzilla.mozilla.org/show_bug.cgi?id=1292457
Product: Core → Core Graveyard
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.