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

<html>
<head>
<meta charset="UTF-8">
<script style="display: none;" id="fuzz1" type="text/javascript;version=1.7">

function boom()
{
    var mediaSource = new window.MediaSource();
    var mediaSourceURL = URL.createObjectURL(mediaSource);
    var v1 = document.createElement('video');
    v1.src = mediaSourceURL;
    mediaSource.addEventListener("sourceopen", function (e) {
        var v2 = document.createElement('video');
        v2.src = mediaSourceURL;
        setTimeout(function () {
            v2.src = "data:text/plain,1";
            v1.src = "data:text/plain,2";
        }, 0);
    });
}

</script>
</head>

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