summaryrefslogtreecommitdiffstats
path: root/dom/html/crashtests/1230110.html
blob: 4654641874afbe4e5c8f18e1e6a0b9eb2f52b75a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script>
// This test case should not leak.
function leak()
{
    var img = document.createElement("img");
    var iframe = document.createElement("iframe");
    img.appendChild(iframe);
    document.body.appendChild(img);

    document.addEventListener('Foo', function(){});
}
</script>
</head>
<body onload="leak();"></body>
</html>