Open Bug 1967833 Opened 9 months ago Updated 5 days ago

Raise TypeError from CanvasContext::Configure in additional cases

Categories

(Core :: Graphics: WebGPU, defect, P4)

defect

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.

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.

Severity: -- → S4
Priority: -- → P4

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.

See Also: → 2019675
You need to log in before you can comment on or make changes to this bug.