summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/crashtests/761831.html
blob: 60fdd6d983ab1d368adcf30ec1c89907dbf3c997 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<script>

function boom()
{
  function removeRoot() {
    window.removeEventListener("DOMNodeRemoved", removeRoot, true);
    document.open();
  }

  window.addEventListener("DOMNodeRemoved", removeRoot, true);

  var r = document.documentElement;
  document.removeChild(r);
}

</script>
</head>

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