Closed Bug 409878 Opened 18 years ago Closed 18 years ago

Garbage displayed for part of bluebar.gif animation

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.9beta3

People

(Reporter: dopefishjustin, Assigned: alfredkayser)

References

()

Details

Attachments

(1 file, 1 obsolete file)

The animated GIF at http://www.alexchiu.com/cell/bluebar.gif displays garbage for part of its duration using current Minefield nightlies. This does not occur in Firefox 2 or IE7. Saving the file to the local disk and opening from there makes no difference. Microsoft GIF Animator gives an error that the file may be corrupt when I try to open it, so that may be related to the problem. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b3pre) Gecko/2007122605 Minefield/3.0b3pre ID:2007122605
Interesting, another corrupt GIF that is showing corrupt display... I remember something about garbage in = garbage out. But apparently the old code was less sensitive to garbage like this.
Assignee: nobody → alfredkayser
Because the attached gif file does provide an header for the next frame, but no actual frame data, and that before (long, long ago) the frame was only allocated when actual frame data (the first row of it) was detected, we now also need to prevent adding empty frames to the imageContainer. So, postpose 'AppendFrame' till 'EndImageFrame', so that we can skip it if there is no image data at all. The memset is to clear any rows not set from image source data (this only applies to animation frames (so not the first one)).
Attachment #294773 - Flags: review?(pavlov)
Attachment #294773 - Attachment is obsolete: true
Attachment #294787 - Flags: review?(pavlov)
Attachment #294773 - Flags: review?(pavlov)
The first patch didn't pass the gifbuster test (http://webtools.mozilla.org/buster/gif-buster/gif-buster.html).
Attachment #294787 - Flags: review?(pavlov)
Attachment #294787 - Flags: review+
Attachment #294787 - Flags: approval1.9+
Keywords: checkin-needed
Attachment #294787 - Flags: superreview?(tor)
Comment on attachment 294787 [details] [diff] [review] V2: Only postpone for animation frames to dynamic update of the first frame working stuart's review is enough here. I'll land this shortly.
Attachment #294787 - Flags: superreview?(tor)
Checking in modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp; /cvsroot/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp,v <-- nsGIFDecoder2.cpp new revision: 1.91; previous revision: 1.90 done
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: checkin-needed
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M11
Ok, thanks!
OS: All → Windows XP
Hardware: All → PC
Target Milestone: mozilla1.9 M11 → ---
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → mozilla1.9 M11
This is a longshot, but is there any chance this bug could have caused bug 412294 or bug 412863?
See bug 411874 for a patch for the problem caused by this bug.
Depends on: 411874
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: