DRT should enable WebGL by default on Mac
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Mar 2016 03:58:26 +0000 (03:58 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Mar 2016 03:58:26 +0000 (03:58 +0000)
https://bugs.webkit.org/show_bug.cgi?id=155419
<rdar://problem/25136981>

Reviewed by Sam Weinig.

Tools:

For some reason, lost in time, WebGL was enabled
by default on trunk, but disabled by default
in DumpRenderTree when using WebKit 1. This
was very annoying, because each test had
an explicit command to enable it.

* DumpRenderTree/mac/DumpRenderTree.mm:
(resetWebPreferencesToConsistentValues): Deleted WebGL line.

LayoutTests:

Update all the tests that no longer have to explicitly
turn WebGL on.

* compositing/backface-visibility/backface-visibility-webgl.html:
* compositing/visibility/visibility-simple-webgl-layer.html:
* compositing/webgl/webgl-background-color.html:
* compositing/webgl/webgl-no-alpha.html:
* compositing/webgl/webgl-nonpremultiplied-blend.html:
* compositing/webgl/webgl-reflection.html:
* compositing/webgl/webgl-repaint.html:
* fast/canvas/webgl/antialiasing-enabled.html:
* fast/canvas/webgl/canvas-resize-crash.html:
* fast/canvas/webgl/css-webkit-canvas-repaint.html:
* fast/canvas/webgl/css-webkit-canvas.html:
* fast/canvas/webgl/out-of-bounds-simulated-vertexAttrib0-drawArrays-expected.txt:
* fast/canvas/webgl/out-of-bounds-simulated-vertexAttrib0-drawArrays.html:
* fast/canvas/webgl/premultiplyalpha-test.html:
* fast/canvas/webgl/resources/webgl-test.js:
(initNonKhronosFramework): Deleted.
* fast/canvas/webgl/texImage2DImageDataTest.html:
* fast/canvas/webgl/toDataURL-unpremultipliedAlpha.html:
* fast/canvas/webgl/unprefixed-context.html:
* fast/canvas/webgl/webgl-composite-modes-repaint.html:
* fast/canvas/webgl/webgl-composite-modes.html:
* fast/canvas/webgl/webgl-drawarrays-crash.html:
* fast/canvas/webgl/webgl-layer-update.html:
* fast/canvas/webgl/webgl-reload-crash.html:
* http/tests/canvas/webgl/origin-clean-conformance.html:
* http/tests/security/webgl-remote-read-remote-image-allowed-with-credentials.html:
* http/tests/security/webgl-remote-read-remote-image-allowed.html:
* http/tests/security/webgl-remote-read-remote-image-blocked-no-crossorigin.html:
* http/tests/webgl/1.0.2/resources/webgl_test_files/conformance/more/unit.js:
* http/tests/webgl/1.0.2/resources/webgl_test_files/resources/js-test-pre.js:
* http/tests/webgl/1.0.2/resources/webkit-webgl-test-harness.js:
* imported/blink/compositing/draws-content/webgl-simple-background.html:
* webgl/1.0.2/resources/webgl_test_files/conformance/more/unit.js:
* webgl/1.0.2/resources/webgl_test_files/resources/js-test-pre.js:
* webgl/1.0.2/resources/webkit-webgl-test-harness.js:
* webgl/1.0.3/resources/webgl_test_files/conformance/more/unit.js:
* webgl/1.0.3/resources/webgl_test_files/resources/js-test-pre.js:
* webgl/1.0.3/resources/webkit-webgl-test-harness.js:
* webgl/resources/webkit-webgl-test-harness.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198091 268f45cc-cd09-0410-ab3c-d52691b4dbfc

41 files changed:
LayoutTests/ChangeLog
LayoutTests/compositing/backface-visibility/backface-visibility-webgl.html
LayoutTests/compositing/visibility/visibility-simple-webgl-layer.html
LayoutTests/compositing/webgl/webgl-background-color.html
LayoutTests/compositing/webgl/webgl-no-alpha.html
LayoutTests/compositing/webgl/webgl-nonpremultiplied-blend.html
LayoutTests/compositing/webgl/webgl-reflection.html
LayoutTests/compositing/webgl/webgl-repaint.html
LayoutTests/fast/canvas/webgl/antialiasing-enabled.html
LayoutTests/fast/canvas/webgl/canvas-resize-crash.html
LayoutTests/fast/canvas/webgl/css-webkit-canvas-repaint.html
LayoutTests/fast/canvas/webgl/css-webkit-canvas.html
LayoutTests/fast/canvas/webgl/out-of-bounds-simulated-vertexAttrib0-drawArrays-expected.txt
LayoutTests/fast/canvas/webgl/out-of-bounds-simulated-vertexAttrib0-drawArrays.html
LayoutTests/fast/canvas/webgl/premultiplyalpha-test.html
LayoutTests/fast/canvas/webgl/resources/webgl-test.js
LayoutTests/fast/canvas/webgl/texImage2DImageDataTest.html
LayoutTests/fast/canvas/webgl/toDataURL-unpremultipliedAlpha.html
LayoutTests/fast/canvas/webgl/unprefixed-context.html
LayoutTests/fast/canvas/webgl/webgl-composite-modes-repaint.html
LayoutTests/fast/canvas/webgl/webgl-composite-modes.html
LayoutTests/fast/canvas/webgl/webgl-drawarrays-crash.html
LayoutTests/fast/canvas/webgl/webgl-layer-update.html
LayoutTests/fast/canvas/webgl/webgl-reload-crash.html
LayoutTests/http/tests/canvas/webgl/origin-clean-conformance.html
LayoutTests/http/tests/security/webgl-remote-read-remote-image-allowed-with-credentials.html
LayoutTests/http/tests/security/webgl-remote-read-remote-image-allowed.html
LayoutTests/http/tests/security/webgl-remote-read-remote-image-blocked-no-crossorigin.html
LayoutTests/http/tests/webgl/1.0.2/resources/webgl_test_files/conformance/more/unit.js
LayoutTests/http/tests/webgl/1.0.2/resources/webgl_test_files/resources/js-test-pre.js
LayoutTests/http/tests/webgl/1.0.2/resources/webkit-webgl-test-harness.js
LayoutTests/imported/blink/compositing/draws-content/webgl-simple-background.html
LayoutTests/webgl/1.0.2/resources/webgl_test_files/conformance/more/unit.js
LayoutTests/webgl/1.0.2/resources/webgl_test_files/resources/js-test-pre.js
LayoutTests/webgl/1.0.2/resources/webkit-webgl-test-harness.js
LayoutTests/webgl/1.0.3/resources/webgl_test_files/conformance/more/unit.js
LayoutTests/webgl/1.0.3/resources/webgl_test_files/resources/js-test-pre.js
LayoutTests/webgl/1.0.3/resources/webkit-webgl-test-harness.js
LayoutTests/webgl/resources/webkit-webgl-test-harness.js
Tools/ChangeLog
Tools/DumpRenderTree/mac/DumpRenderTree.mm

index 2d9ed7a..3901a20 100644 (file)
@@ -1,3 +1,54 @@
+2016-03-13  Dean Jackson  <dino@apple.com>
+
+        DRT should enable WebGL by default on Mac
+        https://bugs.webkit.org/show_bug.cgi?id=155419
+        <rdar://problem/25136981>
+
+        Reviewed by Sam Weinig.
+
+        Update all the tests that no longer have to explicitly
+        turn WebGL on.
+
+        * compositing/backface-visibility/backface-visibility-webgl.html:
+        * compositing/visibility/visibility-simple-webgl-layer.html:
+        * compositing/webgl/webgl-background-color.html:
+        * compositing/webgl/webgl-no-alpha.html:
+        * compositing/webgl/webgl-nonpremultiplied-blend.html:
+        * compositing/webgl/webgl-reflection.html:
+        * compositing/webgl/webgl-repaint.html:
+        * fast/canvas/webgl/antialiasing-enabled.html:
+        * fast/canvas/webgl/canvas-resize-crash.html:
+        * fast/canvas/webgl/css-webkit-canvas-repaint.html:
+        * fast/canvas/webgl/css-webkit-canvas.html:
+        * fast/canvas/webgl/out-of-bounds-simulated-vertexAttrib0-drawArrays-expected.txt:
+        * fast/canvas/webgl/out-of-bounds-simulated-vertexAttrib0-drawArrays.html:
+        * fast/canvas/webgl/premultiplyalpha-test.html:
+        * fast/canvas/webgl/resources/webgl-test.js:
+        (initNonKhronosFramework): Deleted.
+        * fast/canvas/webgl/texImage2DImageDataTest.html:
+        * fast/canvas/webgl/toDataURL-unpremultipliedAlpha.html:
+        * fast/canvas/webgl/unprefixed-context.html:
+        * fast/canvas/webgl/webgl-composite-modes-repaint.html:
+        * fast/canvas/webgl/webgl-composite-modes.html:
+        * fast/canvas/webgl/webgl-drawarrays-crash.html:
+        * fast/canvas/webgl/webgl-layer-update.html:
+        * fast/canvas/webgl/webgl-reload-crash.html:
+        * http/tests/canvas/webgl/origin-clean-conformance.html:
+        * http/tests/security/webgl-remote-read-remote-image-allowed-with-credentials.html:
+        * http/tests/security/webgl-remote-read-remote-image-allowed.html:
+        * http/tests/security/webgl-remote-read-remote-image-blocked-no-crossorigin.html:
+        * http/tests/webgl/1.0.2/resources/webgl_test_files/conformance/more/unit.js:
+        * http/tests/webgl/1.0.2/resources/webgl_test_files/resources/js-test-pre.js:
+        * http/tests/webgl/1.0.2/resources/webkit-webgl-test-harness.js:
+        * imported/blink/compositing/draws-content/webgl-simple-background.html:
+        * webgl/1.0.2/resources/webgl_test_files/conformance/more/unit.js:
+        * webgl/1.0.2/resources/webgl_test_files/resources/js-test-pre.js:
+        * webgl/1.0.2/resources/webkit-webgl-test-harness.js:
+        * webgl/1.0.3/resources/webgl_test_files/conformance/more/unit.js:
+        * webgl/1.0.3/resources/webgl_test_files/resources/js-test-pre.js:
+        * webgl/1.0.3/resources/webkit-webgl-test-harness.js:
+        * webgl/resources/webkit-webgl-test-harness.js:
+
 2016-03-13  Ryosuke Niwa  <rniwa@webkit.org>
 
         REGRESSION (r190840): crash inside details element's slotNameFunction
index 6b90de3..c0d3536 100644 (file)
 </head>
 <body>
 
-<!-- Enable WebGL in the testing framework (without this we will fail to
-     create a GL context) -->
-
-<script>
-  if (window.testRunner) {
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
-  }
-</script>
-
-<table><tr>
+    <table><tr>
 
 <!-- This test draws a canvas which is facing the screen. -->
 
index d32c1b5..b9429d6 100644 (file)
     </style>
 
     <script>
-      if (window.testRunner) {
+      if (window.testRunner)
           testRunner.dumpAsText(true);
-          testRunner.overridePreference("WebKitWebGLEnabled", "1");
-      }
 
       function drawCanvas(canvasID, clearColor)
       {
index 70ecacf..3c63a0b 100644 (file)
@@ -22,9 +22,6 @@
       }
     </style>
     <script>
-        if (window.testRunner)
-            testRunner.overridePreference("WebKitWebGLEnabled", "1");
-
         function initWebGL(canvasName, vshader, fshader, attribs, clearColor, clearDepth)
         {
             var canvas = document.getElementById(canvasName);
index be371bc..c154230 100644 (file)
       }
     </style>
     <script>
-        if (window.testRunner) {
-            testRunner.overridePreference("WebKitWebGLEnabled", "1");
+        if (window.testRunner)
             testRunner.dumpAsText(true);
-        }
 
         function initWebGL(canvasName, vshader, fshader, attribs, clearColor, clearDepth)
         {
index 1052362..cd8a43b 100644 (file)
@@ -13,9 +13,6 @@
       }
     </style>
     <script>
-        if (window.testRunner)
-            testRunner.overridePreference("WebKitWebGLEnabled", "1");
-
         function initWebGL(canvasName, vshader, fshader, attribs, clearColor, clearDepth, premultAlpha)
         {
             var canvas = document.getElementById(canvasName);
index 866fc44..990b7f9 100644 (file)
@@ -27,9 +27,6 @@
       }
     </script>
     <script>
-    if (window.testRunner)
-        testRunner.overridePreference("WebKitWebGLEnabled", "1");
-
     var gl = null;
 
     function draw()
index 7c9e852..70861ff 100644 (file)
@@ -13,9 +13,6 @@ canvas {
 }
 </style>
 <script>
-if (window.testRunner)
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
-
 function initWebGL()
 {
     var canvas = document.getElementById('canvas');
index 9838473..1a98d40 100644 (file)
@@ -29,7 +29,6 @@ void main() {
 if (window.testRunner) {
     window.testRunner.waitUntilDone();
     window.testRunner.dumpAsText();
-    window.testRunner.overridePreference("WebKitWebGLEnabled", "1");
 }
 
 function logResult(message) {
index 42a6fdb..5edc71d 100644 (file)
@@ -27,16 +27,7 @@ testPassed("Canvas did not crash on resize.");
 </head>
 
 <body onload="start()">
-<!-- Enable WebGL in the testing framework (without this we will fail to
-     create a GL context) -->
-
-<script>
-  if (window.testRunner) {
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
-  }
-</script>
-
-<canvas id="example"></canvas>
+    <canvas id="example"></canvas>
 </body>
 </html>
 
index 11628a6..5dc6546 100644 (file)
                 gl.drawArrays(gl.TRIANGLES, 0, 3); 
             }
             
-            if (window.testRunner) {
+            if (window.testRunner)
                 testRunner.waitUntilDone();
-                testRunner.overridePreference("WebKitWebGLEnabled", "1");
-            }
             
             initialize();
 
index 3b84057..6a65494 100644 (file)
@@ -93,9 +93,6 @@
                 gl.clear(gl.COLOR_BUFFER_BIT);
                 gl.drawArrays(gl.TRIANGLES, 0, 3); 
             }
-            
-            if (window.testRunner)
-                testRunner.overridePreference("WebKitWebGLEnabled", "1");
 
             initialize();
             draw(0, 0.5, 0);
index b47f3bc..790e7d4 100644 (file)
@@ -1,2 +1,2 @@
-CONSOLE MESSAGE: line 32: WebGL: INVALID_OPERATION: drawArrays: attempt to access outside the bounds of the simulated vertexAttrib0 array
+CONSOLE MESSAGE: line 30: WebGL: INVALID_OPERATION: drawArrays: attempt to access outside the bounds of the simulated vertexAttrib0 array
 
index aa8766b..8a3340f 100755 (executable)
@@ -1,9 +1,7 @@
 <script>
 
-if (window.testRunner) {
+if (window.testRunner)
     window.testRunner.dumpAsText();
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
-}
 
 function createShader(str, type) {
     var shader = gl.createShader(type);
index 6383384..686c388 100644 (file)
@@ -73,8 +73,6 @@ var canvas;
 var premultipledAlpha;
 
 jsTestIsAsync = true;
-if (window.testRunner)
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
 
 description("Test the WebGL premultipledAlpha context creation flag.");
 doNextTest();
index 7f8a486..6193452 100644 (file)
@@ -1,8 +1,5 @@
 //----------------------------------------------------------------------
 // Differences with respect to Khronos version of webgl-test.js
-if (window.testRunner)
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
-
 function assertMsg(assertion, msg) {
     if (assertion) {
         testPassed(msg);
@@ -12,8 +9,6 @@ function assertMsg(assertion, msg) {
 }
 
 function initNonKhronosFramework(waitUntilDone) {
-  if (window.testRunner)
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
   if (waitUntilDone)
     window.jsTestIsAsync = true;
 }
index 41ea405..7772784 100644 (file)
         
         function init()
         {
-            if (window.testRunner) {
-                testRunner.overridePreference("WebKitWebGLEnabled", "1");
+            if (window.testRunner)
                 testRunner.dumpAsText();
-            }
             // Set up a canvas to get image data from
             var canvas2d = document.getElementById("texcanvas");
             var context2d = canvas2d.getContext("2d");
index 4c98e42..3466dc9 100644 (file)
@@ -12,9 +12,6 @@
 <script>
 var wtu = WebGLTestUtils;
 
-if (window.testRunner)
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
-
 description("Test toDataURL on a non-premultipledAlpha WebGL context.");
 var canvas = document.createElement("canvas");
 var gl = wtu.create3DContext(canvas, { premultipliedAlpha: false, preserveDrawingBuffer: true });
index c2f6211..6c881ff 100644 (file)
@@ -1,8 +1,6 @@
 <script>
-if (window.testRunner) {
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
+if (window.testRunner)
     testRunner.dumpAsText();
-}
 
 var canvas = document.createElement("canvas");
 var context = canvas.getContext("webgl");
index ff37163..30176ab 100644 (file)
@@ -48,7 +48,6 @@ void main() {
 var ctxs = []
 
 if (window.testRunner) {
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
     testRunner.dumpAsText(true);
     document.getElementById("description").style.position = "absolute";
     document.getElementById("description").style.top = "-5000px";
index 5cfb5f6..4582944 100644 (file)
@@ -46,7 +46,6 @@ void main() {
 var ctxs = []
 
 if (window.testRunner) {
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
     testRunner.dumpAsText(true);
     document.getElementById("description").style.position = "absolute";
     document.getElementById("description").style.top = "-5000px";
index 29bf84b..30da1ea 100644 (file)
@@ -27,8 +27,6 @@
 
     if (window.testRunner) {
       testRunner.dumpAsText();
-      testRunner.overridePreference("WebKitAcceleratedCompositingEnabled", "1");
-      testRunner.overridePreference("WebKitWebGLEnabled", "1");
       testRunner.waitUntilDone();
     }
 
index 6caeca9..f87f3fb 100644 (file)
@@ -42,7 +42,6 @@ body {
 <script>
 
 if (window.testRunner) {
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
     testRunner.dumpAsText(true);
     document.getElementById("description").style.position = "absolute";
     document.getElementById("description").style.top = "-5000px"; 
index 2aeb8a3..5c3f1a2 100644 (file)
@@ -27,8 +27,6 @@
     }
     if (window.testRunner) {
       testRunner.dumpAsText();
-      testRunner.overridePreference("WebKitAcceleratedCompositingEnabled", "1");
-      testRunner.overridePreference("WebKitWebGLEnabled", "1");
       testRunner.waitUntilDone();
     }
 
index 74f3a3b..a2ad28f 100644 (file)
@@ -103,7 +103,6 @@ function init() {
 
   if (videoFile) {
     if (window.testRunner) {
-      testRunner.overridePreference("WebKitWebGLEnabled", "1");
       testRunner.dumpAsText();
       testRunner.waitUntilDone();
     }
index 8a7e4fc..92199ff 100644 (file)
@@ -1,7 +1,6 @@
 <pre id="console"></pre>
 <script>
 if (window.testRunner) {
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
     testRunner.dumpAsText();
     testRunner.waitUntilDone();
 }
index 152fd07..fe2f5e7 100644 (file)
@@ -1,7 +1,6 @@
 <pre id="console"></pre>
 <script>
 if (window.testRunner) {
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
     testRunner.dumpAsText();
     testRunner.waitUntilDone();
 }
index f34afd2..6c56bbf 100644 (file)
@@ -1,7 +1,6 @@
 <pre id="console"></pre>
 <script>
 if (window.testRunner) {
-    testRunner.overridePreference("WebKitWebGLEnabled", "1");
     testRunner.dumpAsText();
     testRunner.waitUntilDone();
 }
index ca9faac..706be55 100644 (file)
@@ -33,7 +33,6 @@ if (window.testRunner && !window.layoutTestController) {
 }
 
 if (window.layoutTestController) {
-  layoutTestController.overridePreference("WebKitWebGLEnabled", "1");
   layoutTestController.dumpAsText();
   layoutTestController.waitUntilDone();
 
index c586bda..184956e 100644 (file)
@@ -38,7 +38,6 @@
     }
 
     if (window.layoutTestController) {
-      layoutTestController.overridePreference("WebKitWebGLEnabled", "1");
       layoutTestController.dumpAsText();
       layoutTestController.waitUntilDone();
     }
index 7a83f7a..08c91c2 100644 (file)
@@ -7,7 +7,6 @@
   }
 
   if (window.layoutTestController) {
-    layoutTestController.overridePreference("WebKitWebGLEnabled", "1");
     layoutTestController.dumpAsText();
     layoutTestController.waitUntilDone();
 
index 4d0dc87..34d55eb 100644 (file)
@@ -13,9 +13,6 @@
       }
     </style>
     <script>
-        if (window.testRunner)
-            testRunner.overridePreference("WebKitWebGLEnabled", "1");
-
         function drawCanvas(canvasID) {
             var canvas = document.getElementById(canvasID);
             var gl = canvas.getContext("webgl");
index 9c29e78..ceccd6b 100644 (file)
@@ -33,7 +33,6 @@ if (window.testRunner && !window.layoutTestController) {
 }
 
 if (window.layoutTestController) {
-  layoutTestController.overridePreference("WebKitWebGLEnabled", "1");
   layoutTestController.dumpAsText();
   layoutTestController.waitUntilDone();
 
index c586bda..184956e 100644 (file)
@@ -38,7 +38,6 @@
     }
 
     if (window.layoutTestController) {
-      layoutTestController.overridePreference("WebKitWebGLEnabled", "1");
       layoutTestController.dumpAsText();
       layoutTestController.waitUntilDone();
     }
index 7a83f7a..08c91c2 100644 (file)
@@ -7,7 +7,6 @@
   }
 
   if (window.layoutTestController) {
-    layoutTestController.overridePreference("WebKitWebGLEnabled", "1");
     layoutTestController.dumpAsText();
     layoutTestController.waitUntilDone();
 
index 920448f..af87b61 100644 (file)
@@ -33,7 +33,6 @@ if (window.testRunner && !window.layoutTestController) {
 }
 
 if (window.layoutTestController) {
-  layoutTestController.overridePreference("WebKitWebGLEnabled", "1");
   layoutTestController.dumpAsText();
   layoutTestController.waitUntilDone();
 
index 2a03001..75bdbce 100644 (file)
@@ -38,7 +38,6 @@
     }
 
     if (window.layoutTestController) {
-      layoutTestController.overridePreference("WebKitWebGLEnabled", "1");
       layoutTestController.dumpAsText();
       layoutTestController.waitUntilDone();
     }
index 7a83f7a..08c91c2 100644 (file)
@@ -7,7 +7,6 @@
   }
 
   if (window.layoutTestController) {
-    layoutTestController.overridePreference("WebKitWebGLEnabled", "1");
     layoutTestController.dumpAsText();
     layoutTestController.waitUntilDone();
 
index 7a83f7a..08c91c2 100644 (file)
@@ -7,7 +7,6 @@
   }
 
   if (window.layoutTestController) {
-    layoutTestController.overridePreference("WebKitWebGLEnabled", "1");
     layoutTestController.dumpAsText();
     layoutTestController.waitUntilDone();
 
index abf8fa7..101991e 100644 (file)
@@ -1,3 +1,20 @@
+2016-03-13  Dean Jackson  <dino@apple.com>
+
+        DRT should enable WebGL by default on Mac
+        https://bugs.webkit.org/show_bug.cgi?id=155419
+        <rdar://problem/25136981>
+
+        Reviewed by Sam Weinig.
+
+        For some reason, lost in time, WebGL was enabled
+        by default on trunk, but disabled by default
+        in DumpRenderTree when using WebKit 1. This
+        was very annoying, because each test had
+        an explicit command to enable it.
+
+        * DumpRenderTree/mac/DumpRenderTree.mm:
+        (resetWebPreferencesToConsistentValues): Deleted WebGL line.
+
 2016-03-13  Konstantin Tokarev  <annulen@yandex.ru>
 
         Added new port JSCOnly.
index 727d862..75fcf3e 100644 (file)
@@ -964,7 +964,6 @@ static void resetWebPreferencesToConsistentValues()
     [preferences setCanvasUsesAcceleratedDrawing:YES];
     [preferences setAcceleratedDrawingEnabled:useAcceleratedDrawing];
 #endif
-    [preferences setWebGLEnabled:NO];
     [preferences setCSSRegionsEnabled:YES];
     [preferences setUsePreHTML5ParserQuirks:NO];
     [preferences setAsynchronousSpellCheckingEnabled:NO];