Open Bug 876606 Opened 12 years ago Updated 3 years ago

image.complete is true with incorrect filepath

Categories

(Core :: Graphics: ImageLib, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: robert, Unassigned)

Details

When using an image element with a bogus src, the image.complete property is still true. Expecting false.
This is a dup, and IIRC because imagelib is lacking some functionality DOM would need.
That's correct. Imagelib does not expose enough information for us to tell whether the image is actually complete or not, so the DOM code has to guess.
Component: DOM → ImageLib
On the web side, webdevs can infer an error by checking img.naturalWidth == 0. Could it be a way to fix this in Gecko?
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.