blob: 9802dd77514f6966c87c7f3355dde24ef0648bf9 (
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(){}, false);
}
</script>
</head>
<body onload="leak();"></body>
</html>
|