Bug 1296059 - Restore pref-gating for webidl, and update test_interfaces. - r=mrbkap draft
authorJeff Gilbert <jgilbert@mozilla.com>
Wed, 17 Aug 2016 12:32:57 -0700
changeset 401932 6f902114cf75cbbeff8badfadb4f37112bb13fce
parent 401931 31be807f4cbbf61e52266cf6319d3cba0f5ea40a
child 528605 d7b4defeeafc6412e6ab1e86afecdad9c94e1851
push id26584
push userbmo:jgilbert@mozilla.com
push dateWed, 17 Aug 2016 19:34:22 +0000
reviewersmrbkap
bugs1296059
milestone50.0a2
Bug 1296059 - Restore pref-gating for webidl, and update test_interfaces. - r=mrbkap MozReview-Commit-ID: Ca3Bcb2uvn5
dom/tests/mochitest/general/test_interfaces.html
dom/webidl/WebGL2RenderingContext.webidl
--- a/dom/tests/mochitest/general/test_interfaces.html
+++ b/dom/tests/mochitest/general/test_interfaces.html
@@ -1413,39 +1413,39 @@ var interfaceNamesInGlobalScope =
     "WebGLBuffer",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "WebGLContextEvent",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "WebGLFramebuffer",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "WebGLProgram",
 // IMPORTANT: Do not change this list without review from a DOM peer!
-    "WebGLQuery",
+    //"WebGLQuery",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "WebGLRenderbuffer",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "WebGLRenderingContext",
 // IMPORTANT: Do not change this list without review from a DOM peer!
-    "WebGL2RenderingContext",
-// IMPORTANT: Do not change this list without review from a DOM peer!
-    "WebGLSampler",
+    //"WebGL2RenderingContext",
+// IMPORTANT: Do not change this list without review from a DOM peer!
+    //"WebGLSampler",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "WebGLShader",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "WebGLShaderPrecisionFormat",
 // IMPORTANT: Do not change this list without review from a DOM peer!
-    "WebGLSync",
+    //"WebGLSync",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "WebGLTexture",
 // IMPORTANT: Do not change this list without review from a DOM peer!
-    "WebGLTransformFeedback",
+    //"WebGLTransformFeedback",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "WebGLUniformLocation",
 // IMPORTANT: Do not change this list without review from a DOM peer!
-    "WebGLVertexArrayObject",
+    //"WebGLVertexArrayObject",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "WebKitCSSMatrix",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "WebSocket",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "WheelEvent",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "Window",
--- a/dom/webidl/WebGL2RenderingContext.webidl
+++ b/dom/webidl/WebGL2RenderingContext.webidl
@@ -5,31 +5,37 @@
  *
  * The source for this IDL is found at https://www.khronos.org/registry/webgl/specs/latest/2.0
  * This IDL depends on WebGLRenderingContext.webidl
  */
 
 typedef long long GLint64; // Should this be int64?
 typedef unsigned long long GLuint64;
 
+[Pref="webgl.enable-webgl2"]
 interface WebGLQuery {
 };
 
+[Pref="webgl.enable-webgl2"]
 interface WebGLSampler {
 };
 
+[Pref="webgl.enable-webgl2"]
 interface WebGLSync {
 };
 
+[Pref="webgl.enable-webgl2"]
 interface WebGLTransformFeedback {
 };
 
+[Pref="webgl.enable-webgl2"]
 interface WebGLVertexArrayObject {
 };
 
+[Pref="webgl.enable-webgl2"]
 interface WebGL2RenderingContext : WebGLRenderingContext
 {
     const GLenum READ_BUFFER                                   = 0x0C02;
     const GLenum UNPACK_ROW_LENGTH                             = 0x0CF2;
     const GLenum UNPACK_SKIP_ROWS                              = 0x0CF3;
     const GLenum UNPACK_SKIP_PIXELS                            = 0x0CF4;
     const GLenum PACK_ROW_LENGTH                               = 0x0D02;
     const GLenum PACK_SKIP_ROWS                                = 0x0D03;