whatwg/html

createImageBitmap's note is wrong

Chiusa

#3552 aperta il 10 mar 2018

 (4 commenti) (0 reazioni) (0 assegnatari)HTML (2520 fork)batch import
good first issuetopic: canvas

Metriche repository

Star
 (7654 stelle)
Metriche merge PR
 (Merge medio 42g 18h) (22 PR mergiate in 30 g)

Descrizione

https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#images-2:dom-createimagebitmap

Rejects the promise with a "SecurityError" DOMException if the script is not allowed to access the image data of the source image (e.g. a video that is CORS-cross-origin, or a canvas being drawn on by a script in a worker from another origin).

Creating Bitmap image from CORS-cross-origin source shouldn't be an issue. Especially there's a origin-clean logic in createImageBitmap

Guida contributor