summaryrefslogtreecommitdiffstats
path: root/dom/media/tests/crashtests/1281695.html
blob: 9865c3a5099b3a8c1339a6178cad14adce8c4f60 (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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script>

function zombieWindow()
{
    var frame = document.createElement("iframe");
    document.body.appendChild(frame);
    var frameWin = frame.contentWindow;
    frame.remove();
    return frameWin;
}

function boom() {
    zombieWindow().navigator.mozGetUserMedia({ "fake": true, "audio": true }, function(stream) {}, function(e) {});
}

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