whatwg/html

createImageBitmap's note is wrong

Open

#3,552 opened on Mar 10, 2018

View on GitHub
 (4 comments) (0 reactions) (0 assignees)HTML (7,654 stars) (2,520 forks)batch import
good first issuetopic: canvas

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

Contributor guide

createImageBitmap's note is wrong · whatwg/html#3552 | Good First Issue