diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /dom/canvas/test/crash | |
parent | Initial commit. (diff) | |
download | firefox-esr-upstream.tar.xz firefox-esr-upstream.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | dom/canvas/test/crash/1251091-1.png | bin | 0 -> 95370 bytes | |||
-rw-r--r-- | dom/canvas/test/crash/file_1251091-1.html | 51 | ||||
-rw-r--r-- | dom/canvas/test/crash/file_616401.html | 8 | ||||
-rw-r--r-- | dom/canvas/test/crash/file_798802-1.html | 18 | ||||
-rw-r--r-- | dom/canvas/test/crash/file_bug1233613.html | 19 | ||||
-rw-r--r-- | dom/canvas/test/crash/file_texImage2D.html | 8 | ||||
-rw-r--r-- | dom/canvas/test/crash/mochitest.ini | 17 | ||||
-rw-r--r-- | dom/canvas/test/crash/test_1251091-1.html | 30 | ||||
-rw-r--r-- | dom/canvas/test/crash/test_616401.html | 30 | ||||
-rw-r--r-- | dom/canvas/test/crash/test_798802-1.html | 30 | ||||
-rw-r--r-- | dom/canvas/test/crash/test_bug1233613.html | 30 | ||||
-rw-r--r-- | dom/canvas/test/crash/test_createImageBitmap-video.html | 34 | ||||
-rw-r--r-- | dom/canvas/test/crash/test_texImage2D.html | 30 |
13 files changed, 305 insertions, 0 deletions
diff --git a/dom/canvas/test/crash/1251091-1.png b/dom/canvas/test/crash/1251091-1.png Binary files differnew file mode 100644 index 0000000000..078b19a569 --- /dev/null +++ b/dom/canvas/test/crash/1251091-1.png diff --git a/dom/canvas/test/crash/file_1251091-1.html b/dom/canvas/test/crash/file_1251091-1.html new file mode 100644 index 0000000000..520a393b43 --- /dev/null +++ b/dom/canvas/test/crash/file_1251091-1.html @@ -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>
\ No newline at end of file diff --git a/dom/canvas/test/crash/file_616401.html b/dom/canvas/test/crash/file_616401.html new file mode 100644 index 0000000000..eb5a0bcf4c --- /dev/null +++ b/dom/canvas/test/crash/file_616401.html @@ -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> diff --git a/dom/canvas/test/crash/file_798802-1.html b/dom/canvas/test/crash/file_798802-1.html new file mode 100644 index 0000000000..92ab50fd87 --- /dev/null +++ b/dom/canvas/test/crash/file_798802-1.html @@ -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> diff --git a/dom/canvas/test/crash/file_bug1233613.html b/dom/canvas/test/crash/file_bug1233613.html new file mode 100644 index 0000000000..d949c3b21c --- /dev/null +++ b/dom/canvas/test/crash/file_bug1233613.html @@ -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> diff --git a/dom/canvas/test/crash/file_texImage2D.html b/dom/canvas/test/crash/file_texImage2D.html new file mode 100644 index 0000000000..370b008572 --- /dev/null +++ b/dom/canvas/test/crash/file_texImage2D.html @@ -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> diff --git a/dom/canvas/test/crash/mochitest.ini b/dom/canvas/test/crash/mochitest.ini new file mode 100644 index 0000000000..c9cdcc0e14 --- /dev/null +++ b/dom/canvas/test/crash/mochitest.ini @@ -0,0 +1,17 @@ +[DEFAULT] +subsuite = webgl1-core +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] +skip-if = win10_2004 && debug # Bug 1715832 diff --git a/dom/canvas/test/crash/test_1251091-1.html b/dom/canvas/test/crash/test_1251091-1.html new file mode 100644 index 0000000000..78b699961b --- /dev/null +++ b/dom/canvas/test/crash/test_1251091-1.html @@ -0,0 +1,30 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=1251091 +--> +<head> + <title>Test for webgl crashing</title> + <script 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> diff --git a/dom/canvas/test/crash/test_616401.html b/dom/canvas/test/crash/test_616401.html new file mode 100644 index 0000000000..71c77c1b4a --- /dev/null +++ b/dom/canvas/test/crash/test_616401.html @@ -0,0 +1,30 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=616401 +--> +<head> + <title>Test for webgl crashing</title> + <script 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> diff --git a/dom/canvas/test/crash/test_798802-1.html b/dom/canvas/test/crash/test_798802-1.html new file mode 100644 index 0000000000..6a68f69f37 --- /dev/null +++ b/dom/canvas/test/crash/test_798802-1.html @@ -0,0 +1,30 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=798802 +--> +<head> + <title>Test for webgl crashing</title> + <script 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> diff --git a/dom/canvas/test/crash/test_bug1233613.html b/dom/canvas/test/crash/test_bug1233613.html new file mode 100644 index 0000000000..6e61a77c9f --- /dev/null +++ b/dom/canvas/test/crash/test_bug1233613.html @@ -0,0 +1,30 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=1233613 +--> +<head> + <title>Test for webgl crashing</title> + <script 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> diff --git a/dom/canvas/test/crash/test_createImageBitmap-video.html b/dom/canvas/test/crash/test_createImageBitmap-video.html new file mode 100644 index 0000000000..0861a961a4 --- /dev/null +++ b/dom/canvas/test/crash/test_createImageBitmap-video.html @@ -0,0 +1,34 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=1309838 +--> +<head> + <title>Test for canvas crashing</title> + <script 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(); + + var v = document.createElement("video"); + document.body.appendChild(v); + v.src ="data:video/ogg;base64,T2dnUwACAAAAAAAAAAC1v/BfAAAAAMVFfV4BHgF2b3JiaXMAAAAAAUSsAAD/////APQBAP////+4AU9nZ1MAAAAAAAAAAAAAtb/wXwEAAAB6cK4REC3//////////////////wYDdm9yYmlzHQAAAFhpcGguT3JnIGxpYlZvcmJpcyBJIDIwMDMwOTA5AAAAAAEFdm9yYmlzKUJDVgEACAAAADFMKMSA0JBVAAAQAAAgmDYQa6e11lprgqR2WmuqtdZaaya1tlprrbXWWmuttdZaa6211lpjIDRkFQAABABAKEoStGRSTEopZSBHjnLkOUjKJ6UoRwpi4jnoPfVka02mpORbTUopJQgNWQUAAAIAQAghhBBSSCGFFFJIIYUUYoghpphiyimnnHLKKccggwwyyCCDTDLppKOOOuqss846Cy200EIMscQSU2011tpzEMoopZRSSimllFJKKaWMMcYIQkNWAQAgAAAEQgYZZJBBCCGFFFKKKaaccgwy6IDQkFUAACAAgAAAAADHkBRJsRzL0RxP8iTPEi1REz3TM0XTNE3TNW1Vd3VVV3XVVnXVVmXTNW3TVmXTVXVXl3VXtnVd13Vd13Vd13Vd13Vd13Xdtm0gNGQVACABAKAjOZriKaJiGq7iOqoFhIasAgBkAAAEAKAJniEqoiZqouZpnud5nud5n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QIB+Ii/Wwo4uSNCErm20btGJaWz9LyWRqgiGMADg=="; + v.addEventListener("playing", function() { + var x = createImageBitmap(v); + x.then(function() { + ok(false, "Can't have an image bitmap for this video."); + }, function() { + ok(true, "Yay, rejected but no crash!"); + }).then(function() { + SimpleTest.finish(); + }); + }); + v.play(); + </script> +</body> +</html> + diff --git a/dom/canvas/test/crash/test_texImage2D.html b/dom/canvas/test/crash/test_texImage2D.html new file mode 100644 index 0000000000..e68bdfefe2 --- /dev/null +++ b/dom/canvas/test/crash/test_texImage2D.html @@ -0,0 +1,30 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=?? +--> +<head> + <title>Test for webgl crashing</title> + <script 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> |