Table of contentsNo headers
Loading of WebGL textures is subject to cross-domain access controls. In order for your content to load a texture from another domain, CORS approval needs to be be obtained. See HTTP access control for details on CORS.
CORS support for WebGL textures and the
crossOrigin attribute for image elements is implemented in Gecko 8 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5)
Tainted (write-only) 2D canvases can't be used as WebGL textures. A 2D
becomes tainted, for example, when a cross-domain image is drawn on it.
CORS support for Canvas 2D
drawImage is implemented in Gecko 9 (Firefox 9.0 / Thunderbird 9.0 / SeaMonkey 2.6)
. This means that using a cross-domain image with CORS approval does no longer taint the 2D canvas, so the 2D canvas remains usable as the source of a WebGL texture.
CORS support for cross-domain videos and the
crossorigin attribute for
elements is implemented in Gecko 12 (Firefox 12.0 / Thunderbird 12.0)