summaryrefslogtreecommitdiffstats
path: root/netwerk/test/crashtests/675518.html
blob: 44a43570e4e1d62708af3b32b8dd361145bfbc05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<script>
function boom()
{
  var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
  frame.src = "javascript:'<html><body>1</body></html>';";
  document.body.appendChild(frame);
  var frameWin = frame.contentWindow;

  var resizeListener = function() {
    frameWin.removeEventListener("resize", resizeListener, false);
    frameWin.document.write("3...");
  };
  frameWin.addEventListener("resize", resizeListener, false);

  frameWin.document.write("2...");
}

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