mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb/HTML: Enforce width and height range for OffscreenCanvas
We should be throwing a TypeError on values outside of the range for an unsigned long instead of the default modulo behaviour.
This commit is contained in:
parent
e3b5507113
commit
c1d022523b
Notes:
github-actions[bot]
2025-09-22 11:38:51 +00:00
Author: https://github.com/shannonbooth
Commit: c1d022523b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6251
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 36 additions and 2 deletions
|
|
@ -20,8 +20,8 @@ enum OffscreenRenderingContextId { "2d", "bitmaprenderer", "webgl", "webgl2", "w
|
|||
interface OffscreenCanvas : EventTarget {
|
||||
constructor([EnforceRange] unsigned long long width, [EnforceRange] unsigned long long height);
|
||||
|
||||
attribute unsigned long long width;
|
||||
attribute unsigned long long height;
|
||||
[EnforceRange] attribute unsigned long long width;
|
||||
[EnforceRange] attribute unsigned long long height;
|
||||
|
||||
OffscreenRenderingContext? getContext(OffscreenRenderingContextId contextId, optional any options = null);
|
||||
ImageBitmap transferToImageBitmap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue