summaryrefslogtreecommitdiffstats
path: root/dom/media/webcodecs/crashtests/1849271.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/webcodecs/crashtests/1849271.html')
-rw-r--r--dom/media/webcodecs/crashtests/1849271.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/dom/media/webcodecs/crashtests/1849271.html b/dom/media/webcodecs/crashtests/1849271.html
new file mode 100644
index 0000000000..67e170d8bf
--- /dev/null
+++ b/dom/media/webcodecs/crashtests/1849271.html
@@ -0,0 +1,27 @@
+<html class="reftest-wait">
+ <script>
+ var cfg = {
+ codec: "vp8",
+ colorSpace: { primaries: "bt709" },
+ };
+ var decoder = new VideoDecoder({
+ output: () => {},
+ error: e => {
+ document.documentElement.removeAttribute("class");
+ },
+ });
+ decoder.configure(cfg);
+ try {
+ decoder.decode(
+ new EncodedVideoChunk({
+ type: "key",
+ timestamp: 0,
+ duration: 10,
+ data: new Uint8Array(10),
+ })
+ );
+ } catch (e) {
+ document.documentElement.removeAttribute("class");
+ }
+ </script>
+</html>