summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/crashtests/515726-1.html
blob: 3bf73d42caf2da8e64afe5defe5bab48415a66ba (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>
<script>

function boom()
{
  var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");

  document.documentElement.appendChild(frame);
  var framedoc = frame.contentDocument;
  document.documentElement.removeChild(frame);

  framedoc.removeChild(framedoc.documentElement);
  framedoc.appendChild(frame);

  try { frame.appendChild(undefined); } catch(e) { }

  document.removeChild(document.documentElement);
  document.appendChild(frame);
}

</script>
</head>

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