Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | <!doctype html> |
michael@0 | 2 | <title>uniformMatrix*fv</title> |
michael@0 | 3 | <link rel=author href=mailto:Ms2ger@gmail.com title=Ms2ger> |
michael@0 | 4 | <link rel=help href=https://www.khronos.org/registry/webgl/specs/latest/#WebGLRenderingContext> |
michael@0 | 5 | <link rel=help href=http://dev.w3.org/2006/webapi/WebIDL/#es-boolean> |
michael@0 | 6 | <link rel=help href=http://es5.github.com/#x9.2> |
michael@0 | 7 | <script src=/resources/testharness.js></script> |
michael@0 | 8 | <script src=/resources/testharnessreport.js></script> |
michael@0 | 9 | <script src=common.js></script> |
michael@0 | 10 | |
michael@0 | 11 | <div id=log></div> |
michael@0 | 12 | <script id="vshader" type="x-shader/x-vertex"> |
michael@0 | 13 | uniform mat2 m2; |
michael@0 | 14 | uniform mat3 m3; |
michael@0 | 15 | uniform mat4 m4; |
michael@0 | 16 | </script> |
michael@0 | 17 | <script> |
michael@0 | 18 | var floatArray = function(n) { |
michael@0 | 19 | var a = []; |
michael@0 | 20 | for (var i = 0; i < n; ++i) { |
michael@0 | 21 | a.push(1); |
michael@0 | 22 | } |
michael@0 | 23 | return a; |
michael@0 | 24 | }; |
michael@0 | 25 | [2, 3, 4].forEach(function(n) { |
michael@0 | 26 | test(function() { |
michael@0 | 27 | var gl = getGl(); |
michael@0 | 28 | var f = "uniformMatrix" + n + "fv"; |
michael@0 | 29 | var loc = gl.getUniformLocation(gl.createProgram(), "m" + n); |
michael@0 | 30 | gl[f](loc, { valueOf: function() { throw "Error"; } }, floatArray(n)); |
michael@0 | 31 | }, "Should not throw for " + n); |
michael@0 | 32 | }); |
michael@0 | 33 | </script> |