mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Automatic update from web-platform-tests script: Fix panic in compressedTexSubImage2D when no base image exists Calling compressedTexSubImage2D without a prior compressedTexImage2D for the same texture target and level caused a panic because image_info_for_target returned None and .unwrap() was called on it. Per the WebGL spec, this should generate GL_INVALID_OPERATION instead of panicking. Replace the unwrap with proper error handling. Also adds a WPT crash test that reproduces the original panic. Fixes: #43527 Signed-off-by: thebabalola <[email protected]> -- script: Add MissingBaseTexture variant and rewrite WPT test as testharness Signed-off-by: thebabalola <[email protected]> -- wpt-commits: 1d323b6b5c723bb21f852e16c6f47f4552cb5075, c94a02b563e7b4e8f89d35f19261657b29f4e0ae wpt-pr: 59061