summaryrefslogtreecommitdiffstats
path: root/dom/media/mediasource/test/crashtests/926665.html
blob: ccac5a7644c2fcc6feaacdb0a342eed3fbe7c8e3 (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
<html>
<head>
<meta charset="UTF-8">
<script style="display: none;" id="fuzz1" type="text/javascript">

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>