js/xpconnect/crashtests/761831.html
author Emilio Cobos Álvarez <ecoal95@gmail.com>
Fri, 29 Jul 2016 10:50:26 -0700
changeset 347524 0e1f1a9c666d2ba8ddba5246fb4e705244edbeb4
parent 105173 b42e446013636712c1ee7103666ed3013da76fef
permissions -rw-r--r--
Bug 1287951: followup: Know if a snapshot belongs to a HTML element in an HTML document at construction time. r=heycam MozReview-Commit-ID: eN0j8vnesa

<!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>