diff options
Diffstat (limited to '')
-rw-r--r-- | dom/canvas/test/crash/test_createImageBitmap-video.html | 34 |
1 files changed, 34 insertions, 0 deletions
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//////////////////wYDdm9yYmlzHQAAAFhpcGguT3JnIGxpYlZvcmJpcyBJIDIwMDMwOTA5AAAAAAEFdm9yYmlzKUJDVgEACAAAADFMKMSA0JBVAAAQAAAgmDYQa6e11lprgqR2WmuqtdZaaya1tlprrbXWWmuttdZaa6211lpjIDRkFQAABABAKEoStGRSTEopZSBHjnLkOUjKJ6UoRwpi4jnoPfVka02mpORbTUopJQgNWQUAAAIAQAghhBBSSCGFFFJIIYUUYoghpphiyimnnHLKKccggwwyyCCDTDLppKOOOuqss846Cy200EIMscQSU2011tpzEMoopZRSSimllFJKKaWMMcYIQkNWAQAgAAAEQgYZZJBBCCGFFFKKKaaccgwy6IDQkFUAACAAgAAAAADHkBRJsRzL0RxP8iTPEi1REz3TM0XTNE3TNW1Vd3VVV3XVVnXVVmXTNW3TVmXTVXVXl3VXtnVd13Vd13Vd13Vd13Vd13Xdtm0gNGQVACABAKAjOZ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J5o3oQYP1OAeKI5cqRDs3OkaigSGelovRNngEgb5ztoHkKbusQIB+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> + |