Khronos public bugtracker – Bug 601
Spec and test behavior of uploading incomplete images
Last modified: 2012-02-29 15:46:55 PST
Conformance test conformance/more/conformance/quickCheckAPI-S_V.html exposes an issue where an Image object is being uploaded where its width and height have been set, but not its URL.
This exposes issues in the WebGL spec and conformance suite. Cedric Vivier points out:
> canvas2d specification states :
> If the image has no image data, throws an InvalidStateError exception.
> If the one of the source rectangle dimensions is zero, throws an
> IndexSizeError exception. If the image isn't yet fully decoded, then
> nothing is drawn.
Benoit Jacob asks:
> should we harmonize with the canvas 2d drawImage function (see Cedric's reply) or is that a non-goal?
> should we distinguish between images that have a src and just haven't yet finished loading, and images that don't have a src? Deterministic programming mistake vs. possible non-deterministic race condition... I don't know what the established practice is about that.
These issues need to be figured out for the next version of the spec and conformance tests.