Khronos Public Bugzilla
Bug 601 - Spec and test behavior of uploading incomplete images
Spec and test behavior of uploading incomplete images
Status: NEW
Product: WebGL
Classification: Unclassified
Component: Conformance Tests
unspecified
All All
: P3 normal
: ---
Assigned To: 3dweb Working Group email alias
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-29 15:46 PST by Kenneth Russell
Modified: 2012-02-29 15:46 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Russell 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.