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

贡献者指南