Closed Bug 667203 Opened 14 years ago Closed 14 years ago

Load event fires multiple times for Motion JPG files (mjpg)

Categories

(Core :: Graphics: ImageLib, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: humph, Unassigned)

Details

Attachments

(1 file)

Working with mjpg files, I'm noticing differences across browser implementations. In Chrome and WebKit (on OS X 10.6) the attached test case will cause a single 'onload' to be printed below the image. In Firefox, I get them happening at the framerate. Which way is right? Are images loaded once, and then streaming frames part of the image, or is each frame a new image? I also note, with the attached test case, that Firefox seems to stop updating the stream quite often. Could be the remote server, or my network.
Bug 625012 is possibly related.
> Are images loaded once, and then streaming frames part of the image, or is each > frame a new image? In Gecko, it's the latter. As far as I know there is no spec for this.
(In reply to Boris Zbarsky (:bz) from comment #2) > > Are images loaded once, and then streaming frames part of the image, or is each > > frame a new image? > > In Gecko, it's the latter. > > As far as I know there is no spec for this. Closing as it sounds like Gecko's behaviour is by design. Please reopen if this isn't the case, or if you'd like to use this bug to discuss whether Gecko's behaviour should change anyway.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
http://dev.w3.org/html5/spec/the-img-element.html#the-img-element said "if the resource type is multipart/x-mixed-replace, then each task that is queued by the networking task source while the image is being fetched must also update the presentation of the image, but as each new body part comes in, it must replace the previous image. Once one body part has been completely decoded, the user agent must set the img element to the completely available state and queue a task to fire a simple event named load at the img element."
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: