[Webkit-unassigned] [Bug 28832] <img>.complete should return false for invalid images
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 20 03:50:48 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=28832
--- Comment #12 from Jussi Kukkonen <jussi.kukkonen at intel.com> 2012-08-20 03:51:24 PST ---
(In reply to comment #10)
> * tests need to be updated
Outlining this a bit: I think there's no specific img.complete test but several canvas tests do test it with broken or missing images. These have two basic problems:
1. the broken image is marked visibility:hidden, but the test expects complete to be false. I'm not smart enough to say if that is according to spec, but I think that we cannot expect that result in practice: if the image is invisible we do not want to decode it, so we can't know it's broken. I would suggest for testing broken images we set them viisble
2. the tests expect the broken image to be incomplete immediately. This may be a valid expectation, but does not currently happen. This fails in philip tests:
var img = document.getElementById('broken.png');
_assertSame(img.complete, false, "img.complete", "false");
because img.complete is true for a very short time, probably until the decoder has decided that the image can't be decoded.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list