whatwg/html

createImageBitmap's note is wrong

已關閉

#3,552 建立於 2018年3月10日

 (4 則留言) (0 個反應) (0 位負責人)HTML (2,520 個分叉)batch import
good first issuetopic: canvas

倉庫指標

星標
 (7,654 顆星)
PR 合併指標
 (平均合併 42天 18小時) (30 天內合併 22 個 PR)

描述

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

貢獻者指南