mirror of
https://github.com/servo/servo
synced 2026-05-13 18:37:30 +02:00
The canvas `origin clean` flag for 2D rendering context should be reset on the reset the context to its default state. See https://html.spec.whatwg.org/multipage/#security-with-canvas-elements The following operations are resetting the `origin clean` flag: - reset() method https://html.spec.whatwg.org/multipage/#dom-context-2d-reset - canvas (output bitmap) dimensions change https://html.spec.whatwg.org/multipage/#concept-canvas-set-bitmap-dimensions Testing: Improvements in the following tests - html/semantics/embedded-content/the-canvas-element/security.reset.* - html/semantics/embedded-content/the-canvas-element/security.resize.* Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>