Raise TypeError from CanvasContext::Configure in additional cases
Categories
(Core :: Graphics: WebGPU, defect, P4)
Tracking
()
People
(Reporter: aleiserson, Unassigned)
References
(Blocks 1 open bug)
Details
Split from bug 1864904. The fix linked to that bug raises TypeError from GPUCanvasContext.configure if an invalid context texture format is requested. However, there is a test case in the tree (test_context_configure.html) with a TODO that configuring an excessively large texture should raise TypeError. That case wasn't covered by the fix for bug 1864904, and may be more difficult to fix if it requires doing some validation synchronously that is currently done asynchronously.
| Reporter | ||
Comment 1•9 months ago
|
||
Marking as P4, although if we find specific applications or CTS tests that are broken by the current behavior, that might justify a higher priority.
| Reporter | ||
Updated•9 months ago
|
| Reporter | ||
Comment 2•9 months ago
|
||
However, note that while "[validating] texture format required features of configuration.format with device" happens on the content timeline, validating GPUTextureDescriptor happens on the device timeline, and raises a validation error. So I am not sure that the test case in test_context_configure.html should raise a type error.
Description
•