Open Bug 534862 Opened 15 years ago Updated 2 years ago

APNG favicon as bookmark icon skips first frame, even though is not animated.

Categories

(Core :: Graphics: ImageLib, defect)

defect

Tracking

()

People

(Reporter: alloy45224, Unassigned)

References

(Blocks 1 open bug, )

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20091214 Minefield/3.7a1pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20091214 Minefield/3.7a1pre

I created an apng favicon for my website, constantmayhem.com. The apng includes a first frame that is to be skipped by apng viewers (so that old browsers see a static image). I would think that since the icons in the bookmarks toolbars are shown in non-animated form that the first frame of the image should be shown. Instead, the first frame of the animated portion of the image is shown, (in my case) resulting in a black box as the favicon in the bookmarks/history listings.

Reproducible: Always

Steps to Reproduce:
1. Visit web page which uses an animated png image as the favicon with a first frame to be displayed by non-apng viewers.
2. Bookmark the page.
Actual Results:  
Bookmark icon shows the second frame of the image.

Expected Results:  
Bookmark icon should show the first frame of the image.

Have also tested on Windows Vista x86 with Firefox 3.5.5, and Windows 7 x86 with Firefox 3.5.5.
i see an animated icon at that address...
i almost forgot: Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.2b6pre) Gecko/20091219 Namoroka/3.6b6pre
tested on 3.7 and WFM there as well
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20091223 Minefield/3.7a1pre
Yes, the animated icon works. But if you bookmark the page, the bookmark favicon is not animated, and shows the second frame of the image (a black frame in the case of http://constantmayhem.com/dev/favicon-bug/favicon.htm). What I am thinking is since the bookmark favicon is not animated, the first frame of the image (which is skipped by apng-aware viewers) should be displayed instead.
ok, i can reproduce the thing saving a bookmark. we optimize favicons bigger than a certain filesize, and this is probably the case. This sounds more like an imgITools bug though since we just use that util.
cc-ing dolske that looks like author of imgTools, in case he knows about a known issue.
Status: UNCONFIRMED → NEW
Ever confirmed: true
imgTools just uses frame 0 from the imgContainer, which is the first animated frame.

To fix this, you'd probably have to hack imglib and libpng to extract the special skipped frame from the APNG, and stash it somewhere where it could be retrieved.

Sounds like a legit feature request, but given the scope of work not one that's likely to be a priority. In the meantime, I'd suggest changing the order of your animation's frames so that the first (non-skipped) frame works well as a bookmark icon. (eg, instead of frames A-B-C-D-E, make it D-E-A-B-C or whatever)
On my main site I've got the static png image for non-apng browsers still, but the first frame of the animation is transparent. This is less than ideal, but will work for now.
Blocks: 495609
Assignee: nobody → glennrp+bmo
Status: NEW → ASSIGNED
Assignee: glennrp+bmo → nobody
Status: ASSIGNED → NEW
Component: Bookmarks & History → ImageLib
Product: Firefox → Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.