whatwg/html

createImageBitmap's note is wrong

クローズ

#3,552 opened on 2018/03/10

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)HTML (2,520 件のフォーク)batch import
good first issuetopic: canvas

Repository metrics

Stars
 (7,654 個のスター)
PR merge metrics
 (平均マージ 42d 18h) (30d で 22 merged PRs)

説明

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

コントリビューターガイド