import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo

This commit is contained in:
Roy Tam 2018-01-19 03:59:58 +08:00
commit dcd9973243
150858 changed files with 23884658 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View file

@ -0,0 +1,51 @@
<!doctype html>
<html class="reftest-wait">
<head>
<script type="text/javascript">
var gl;
function start() {
var canvas = document.getElementById("glcanvas");
gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
if (gl) {
initTextures();
} else {
finish();
}
}
function initTextures() {
var cubeTexture = gl.createTexture();
var cubeImage = document.getElementById("i");
cubeImage.onload = function() { handleTextureLoaded(cubeImage, cubeTexture); }
cubeImage.onerror = function() { finish(); }
cubeImage.src = "1251091-1.png";
}
function handleTextureLoaded(image, texture) {
gl.bindTexture(gl.TEXTURE_2D, texture);
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_NEAREST);
gl.generateMipmap(gl.TEXTURE_2D);
gl.bindTexture(gl.TEXTURE_2D, null);
setTimeout(showit,0);
}
function showit() {
document.getElementById("i").style.display = "";
finish();
}
function finish() {
document.documentElement.removeAttribute("class");
}
</script>
</head>
<body onload="start()">
<canvas id="glcanvas" width="640" height="480"></canvas>
<img id="i" style="display: none;">
</body>
</html>

View file

@ -0,0 +1,8 @@
<!doctype html>
<script>
var c = document.createElement("canvas");
c.getContext("experimental-webgl", {
get a() { throw 7; },
get b() { throw 8; }
});
</script>

View file

@ -0,0 +1,18 @@
<html>
<head>
<script>
onload = function() {
var canvas2d = document.createElement('canvas')
canvas2d.setAttribute('width', 0)
document.body.appendChild(canvas2d)
var ctx2d = canvas2d.getContext('2d')
ctx2d.fillStyle = 'black'
var gl = document.createElement('canvas').getContext('experimental-webgl')
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, canvas2d)
ctx2d.fillRect(0, 0, 1, 1)
}
</script>
</head>
<body>
</body>
</html>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<iframe style="display:none" srcdoc="
<html>
<head>
<script type='text/javascript'>
function boom() {
var gl = canvas.getContext('experimental-webgl');
video.srcObject = canvas.captureStream(0);
}
</script>
</head>
<body onload='boom();'>
<video id='video' width='256' height='256'></video>
<canvas id='canvas' width='256' height='256'></canvas>
</body>
</html>
"></iframe>

View file

@ -0,0 +1,8 @@
<!doctype html>
<canvas></canvas>
<script>
var canvas = document.body.firstChild,
gl = canvas.getContext("experimental-webgl");
gl.texImage2D(0, 0, 0, 0, 0, { get width() { throw 7 }, get height() { throw 7 }, data: new Uint8ClampedArray(10) });
gl.texSubImage2D(0, 0, 0, 0, 0, 0, { get width() { throw 7 }, get height() { throw 7 }, data: new Uint8ClampedArray(10) });
</script>

View file

@ -0,0 +1,16 @@
[DEFAULT]
subsuite = webgl
support-files =
file_bug1233613.html
file_texImage2D.html
file_616401.html
file_798802-1.html
file_1251091-1.html
1251091-1.png
[test_bug1233613.html]
[test_texImage2D.html]
[test_616401.html]
[test_798802-1.html]
[test_1251091-1.html]
[test_createImageBitmap-video.html]

View file

@ -0,0 +1,30 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1251091
-->
<head>
<title>Test for webgl crashing</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<body>
<script class="testbody" type="application/javascript">
SimpleTest.waitForExplicitFinish();
ok(true, "expecting an exception, not a crash");
var iframe = document.getElementById('iframe1');
try {
iframe.src = 'file_1251091-1.html';
ok(false, 'loaded the iframe and we did not see a crash, perfect!');
} catch (e) {
ok(true, "caught exception in loading the iframe");
}
SimpleTest.finish();
</script>
<iframe id="iframe1" src="" width="600" height="600"></iframe>
</body>
</html>

View file

@ -0,0 +1,30 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=616401
-->
<head>
<title>Test for webgl crashing</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<body>
<script class="testbody" type="application/javascript">
SimpleTest.waitForExplicitFinish();
ok(true, "expecting an exception, not a crash");
var iframe = document.getElementById('iframe1');
try {
iframe.src = 'file_616401.html';
ok(false, 'loaded the iframe and we did not see a crash, perfect!');
} catch (e) {
ok(true, "caught exception in loading the iframe");
}
SimpleTest.finish();
</script>
<iframe id="iframe1" src="" width="600" height="600"></iframe>
</body>
</html>

View file

@ -0,0 +1,30 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=798802
-->
<head>
<title>Test for webgl crashing</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<body>
<script class="testbody" type="application/javascript">
SimpleTest.waitForExplicitFinish();
ok(true, "expecting an exception, not a crash");
var iframe = document.getElementById('iframe1');
try {
iframe.src = 'file_798802-1.html';
ok(false, 'loaded the iframe and we did not see a crash, perfect!');
} catch (e) {
ok(true, "caught exception in loading the iframe");
}
SimpleTest.finish();
</script>
<iframe id="iframe1" src="" width="600" height="600"></iframe>
</body>
</html>

View file

@ -0,0 +1,30 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1233613
-->
<head>
<title>Test for webgl crashing</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<body>
<script class="testbody" type="application/javascript">
SimpleTest.waitForExplicitFinish();
ok(true, "expecting an exception, not a crash");
var iframe = document.getElementById('iframe1');
try {
iframe.src = 'file_bug1233613.html';
ok(false, 'loaded the iframe and we did not see a crash, perfect!');
} catch (e) {
ok(true, "caught exception in boom");
}
SimpleTest.finish();
</script>
<iframe id="iframe1" src="" width="600" height="600"></iframe>
</body>
</html>

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,30 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=??
-->
<head>
<title>Test for webgl crashing</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<body>
<script class="testbody" type="application/javascript">
SimpleTest.waitForExplicitFinish();
ok(true, "expecting an exception, not a crash");
var iframe = document.getElementById('iframe1');
try {
iframe.src = 'file_texImage2D.html';
ok(false, 'loaded the iframe and we did not see a crash, perfect!');
} catch (e) {
ok(true, "caught exception in loading the iframe");
}
SimpleTest.finish();
</script>
<iframe id="iframe1" src="" width="600" height="600"></iframe>
</body>
</html>