summaryrefslogtreecommitdiffstats
path: root/dom/media/mediasource/test/crashtests/1005366.html
blob: aa8b7f652e0a90d56bafd2e8e881d1a8d40dced3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script>

/*
user_pref("media.mediasource.enabled", true);
*/

function boom()
{
    var source = new window.MediaSource();
    var videoElement = document.createElementNS('http://www.w3.org/1999/xhtml', 'video');
    videoElement.src = URL.createObjectURL(source);

    setTimeout(function() {
        var buf = source.addSourceBuffer("video/webm");
        buf.abort();
        buf.appendBuffer(new Float32Array(203));
    }, 0);
}

</script>
</head>
<body onload="boom();"></body>
</html>