whatwg/html

createImageBitmap's note is wrong

Fechada

#3.552 aberto em 10 de mar. de 2018

 (4 comentários) (0 reação) (0 responsável)HTML (2.520 forks)batch import
good first issuetopic: canvas

Métricas do repositório

Stars
 (7.654 estrelas)
Métricas de merge de PR
 (Mesclagem média 42d 18h) (22 fundiu PRs em 30d)

Description

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

Guia do colaborador