mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
To prevent any potential crash/OOM issues with "canvas" element from "rogue" applications let's apply large size limitations for context canvas2d's draw target to Servo (similar approach in Firefox/Chromium - they limits width and height to 32767/65535 pixels). Fixes: #36155, #34117, #30164, #24710 -- - [x] ./mach build -d does not report any errors - [x] ./mach test-tidy does not report any errors - [x] There are tests for these changes tests/wpt/tests/html/canvas/element/canvas-host/2d.canvas.host.size.large.html tests/wpt/tests/html/canvas/offscreen/canvas-host/2d.canvas.host.size.large.html tests/wpt/tests/html/canvas/offscreen/canvas-host/2d.canvas.host.size.large.worker.js Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com> |
||
---|---|---|
.. | ||
webgl_mode | ||
canvas_data.rs | ||
canvas_paint_thread.rs | ||
Cargo.toml | ||
lib.rs | ||
raqote_backend.rs | ||
webgl_limits.rs | ||
webgl_thread.rs | ||
webxr.rs |