<div dir="ltr">Package: iceweasel<br>Version: 37.0-1~bpo70+1<br><br><div>I have a gif file which does not loop infinitely but has a finite number of repetitions (10 repeats). When I open this in Firefox, Chromium and so on, it stops after this number of repetitions is reached. See for example the attached gif image. This the output of "gifsicle -I animg.gif"</div><div><br></div><div>* animg.gif 4 images<br>  logical screen 696x472<br>  global color table [8]<br>  background 0<br>  <strong>loop count 10</strong><br>  + image #0 696x472<br>    delay 0.10s<br>  + image #1 696x472<br>    delay 0.10s<br>  + image #2 696x472<br>    delay 0.10s<br>  + image #3 696x472<br>    delay 0.10s</div><div><br></div><div>When I open this gif file in iceweasel, it loops infinitely, regardless of the loop count I set, in this case 10. When I open the same image in eog (eye of gnome) or in Chromium or in Firefox (Ubuntu), it stops correctly after the 10 repetitions. This bug seems to be inherited from Netscape, where it was corrected in version Netscape "Atlas" 3.0 b1:<br><a href="http://www6.uniovi.es/gifanim/gifmakg.htm#loopiterations">http://www6.uniovi.es/gifanim/gifmakg.htm#loopiterations</a>   "Iteration counts are now obeyed, giving you finite loops."</div><div><br></div><div>I suggest to look at current Firefox code and mimic their implementation for Iceweasel.</div><div><br></div>I am using Debian Jessie, namely Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64 GNU/Linux</div>