Files
servo/components/script
Andrei Volykhin 08cc8bc991 canvas: Reset origin clean flag on reset the context to its default state (#39768)
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>
2025-10-13 12:11:03 +00:00
..
2025-10-02 07:51:19 +00:00
2025-10-02 07:51:19 +00:00
2025-10-02 07:51:19 +00:00