Open Bug 667198 Opened 13 years ago Updated 2 years ago

MJPEG frames change even when image animations are disabled

Categories

(Core :: Graphics: ImageLib, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: aceman, Unassigned)

References

()

Details

(Keywords: perf)

If animation is disabled (image.animation_mode set to 'none'), various images still animate:

1. mjpg image on http://dl.dropbox.com/u/1066659/lol.html
2. data:image/png;base64 image as seen e.g. on about:home (this serves various images, you have to reload the page until you get an ad with fox running in a field)

When the images are displayed outside of the page (using View image), the mpjg image still animates. The data:image/png does not animate - obeys the setting correctly.

Animated gifs work fine, obey the setting.
Seen on FF5 and FF6a2 linux.
Imagelib doesn't treat mjpg as an animation but as a series of image loads one after another (just like a script that resets img.src periodically).  Up to the imagelib folks to decide whether disabling animations should effectively kill the stream after the current frame.

about:home runs with expanded principals, which exempt it from normal web content restrictions.
Component: Layout: Images → ImageLib
QA Contact: layout.images → imagelib
Summary: images animate even when animation is disabled → MJPEG frames change even when image animations are disabled
I think mjpeg should either behave as a video (<video> tag), i.e. do not start playing until the user chooses so. Or it should behave as an animated gif and then obey animation settings. Currently it is a third state, where it animates unconditionally without any user control.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.