content/media/mediasource/test/crashtests/1005366.html
author Matthew Gregan <kinetik@flim.org>
Thu, 08 May 2014 14:22:34 +1200
changeset 182081 3c695f32262b66ad19bd211aeb8568c12a4cfbdf
permissions -rw-r--r--
Bug 1005366 - Tighten up handling of SourceBuffer decoder resets. r=cajbir

<!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>