Open Ms2ger opened 6 years ago
I wish there was a more sound approach we could use than forwarding bits across objects.
Perhaps a switch across the possible types of the image argument would at least make it obvious that ImageBitmap
was forgotten.
OffScreenCanvas
is also missing from this list (and a similar list slightly higher up).
@junov as far as I can tell OffscreenCanvasRenderingContext2D has an origin-clean bit, but OffscreenCanvas itself does not?
https://html.spec.whatwg.org/multipage/canvas.html#the-image-argument-is-not-origin-clean
In particular, it doesn't check for
ImageBitmap
arguments, so the following doesn't taint the canvas: