aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/WebGLRenderingContext.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/WebGLRenderingContext.webidl')
-rw-r--r--components/script/dom/webidls/WebGLRenderingContext.webidl6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/webidls/WebGLRenderingContext.webidl b/components/script/dom/webidls/WebGLRenderingContext.webidl
index fcd3f9752ae..6938e547cce 100644
--- a/components/script/dom/webidls/WebGLRenderingContext.webidl
+++ b/components/script/dom/webidls/WebGLRenderingContext.webidl
@@ -43,7 +43,7 @@ dictionary WebGLContextAttributes {
GLboolean failIfMajorPerformanceCaveat = false;
};
-[Exposed=Window]
+[Exposed=(Window,Worker)]
interface mixin WebGLRenderingContextBase
{
@@ -465,7 +465,7 @@ interface mixin WebGLRenderingContextBase
const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
const GLenum BROWSER_DEFAULT_WEBGL = 0x9244;
- readonly attribute HTMLCanvasElement canvas;
+ readonly attribute (HTMLCanvasElement or OffscreenCanvas) canvas;
readonly attribute GLsizei drawingBufferWidth;
readonly attribute GLsizei drawingBufferHeight;
@@ -680,7 +680,7 @@ interface mixin WebGLRenderingContextOverloads
undefined uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value);
};
-[Exposed=(Window)]
+[Exposed=(Window,Worker)]
interface WebGLRenderingContext
{
};