servo/tests
Andrei Volykhin 801ac9e22a
pixels: Add limitation to max image total bytes length (#37172)
Limit the maximum image allocation size to 2GB to minimize the
possibility of out of memory errors on some `ImageBitmap`, `ImageData`,
`Canvas`, and `OffscreenCanvas` operations such as construction,
`toBlob`, and `toDataURL`. Other browsers have similar limits:
 - Chromium: 2^32-1 (~4GB)
- Firefox: 2^31-1 (~2GB)

Testing: Improvements to the following tests:
-
`html/canvas/element/pixel-manipulation/2d.imageData.object.ctor.basics.html`
assert_throws_dom("INDEX_SIZE_ERR", function() { new ImageData(1 << 31,
1 << 31); });
-
`html/canvas/element/manual/imagebitmap/createImageBitmap-invalid-args.html`
   makeOversizedCanvas + makeOversizedOffscreenCanvas

Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
2025-05-29 10:43:27 +00:00
..
dromaeo mach: Add test-speedometer command and --bmf-output to speedometer and dromaeo (#33247) 2024-08-29 15:58:57 +00:00
html layout: Support wavy and double for text-decoration-line (#37079) 2025-05-22 17:42:50 +00:00
jquery
power
unit script: Add support for polygons in HtmlAreaElement::hit_test (#37064) 2025-05-24 09:53:27 +00:00
wpt pixels: Add limitation to max image total bytes length (#37172) 2025-05-29 10:43:27 +00:00