Expose WebGL-related interfaces only in Window

This commit is contained in:
Anthony Ramine 2016-11-27 13:29:22 +01:00
parent 6210bede8b
commit 8af2327e95
26 changed files with 82 additions and 67 deletions

View file

@ -3,7 +3,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.15
[Constructor(DOMString type, optional WebGLContextEventInit eventInit)]
[Constructor(DOMString type, optional WebGLContextEventInit eventInit),
Exposed=Window]
interface WebGLContextEvent : Event {
readonly attribute DOMString statusMessage;
};