4 ms·
You can already draw non-same-origin images to the canvas using drawImage. This marks a special "origin-clean" flag which is checked when someone tries to call
by Jasper_ 9y ago
You can already draw non-same-origin images to the canvas using drawImage. This marks a special "origin-clean" flag which is checked when someone tries to call toDataURI or getImageData on the canvas [0] I would be OK if drawing any DOM node to the canvas cleared the origin-clean flag.
[0] https://html.spec.whatwg.org/multipage/canvas.html https://html.spec.whatwg.org/multipage/canvas.html