Animated images share state




13 years ago
8 months ago


(Reporter: Agro Rachmatullah, Unassigned)




Firefox Tracking Flags

(Not tracked)



(1 attachment)



13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8) Gecko/20051111 Firefox/1.5

When an animated gif file is opened in multiple tabs, pressing ESC on a tab will stop the animation on all tabs.

Reproducible: Always

Steps to Reproduce:
1. Open an animated gif file, for example in two tabs
2. Press ESC in one of the tabs

Actual Results:  
The animation on all tabs stop

Expected Results:  
Only the animation on the relevant tab stops
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060405 Firefox/1.6a1
I can reproduce this with the animated favicon in the url provided, but not with an animation somewhere in a page like this:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060406 Firefox/1.6a1 ID:2006040602 (non-cairo)
I see this too. It looks like it only happens when the animated gif also appears as the tab's (anmiated) favicon?
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060406 Firefox/1.6a1 ID:2006040602

Bug 232225 looks kinda related, but that was apparently due to a tabbed browser extension. But I see this bug with a clean profile.

Also, if you load the animation in 4 tabs, press ESC in one tab (animations in all other tabs stop), and then you open a new tab with the animation, all other tabs reanimate.
Created attachment 217421 [details]
testcase from comment 0 URL


13 years ago
Keywords: testcase

Comment 5

13 years ago
Duplicate of/related to Core bug 269843?


12 years ago
Assignee: nobody → pavlov
Component: General → ImageLib
Product: Firefox → Core
QA Contact: general
Version: unspecified → 1.8 Branch


11 years ago
Assignee: pavlov → nobody
QA Contact: imagelib
Ever confirmed: true

Comment 6

7 years ago
A related couple of bugs: bug 287546, bug 188924.
Duplicate of this bug: 287546
Duplicate of this bug: 188924
This is a long-time limitation of Gecko's image cache: we only have one instance of animated images, so we share their animation state between any instance of that image.
Summary: Pressing ESC stops gif animation in more than 1 tab. → Animated images share state
Duplicate of this bug: 404285
OS: Windows 98 → All
Hardware: x86 → All
Version: 1.8 Branch → Trunk
Duplicate of this bug: 830211
Duplicate of this bug: 269843
Blocks: 843308
No longer blocks: 717872

Comment 13

8 months ago
I have gif-blockers. I can block the pain/animation, and spare myself migraines, vomiting, etc. But other people may not have working gif-blockers. I don't want to accidentally repost something containing an animated gif, inflicting the pain/animation, and triggering someone else's migraines, vomiting, or seizures.

Because of this bug, it isn't safe to use "view image info" to check the format to check if the image is safe. People's reports of that problem have been resolved as dupes of this problem.
You need to log in before you can comment on or make changes to this bug.