content/base/crashtests/849601.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/crashtests/849601.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +<meta charset="UTF-8">
     1.8 +<script>
     1.9 +
    1.10 +function addEmptyMutationObserver()
    1.11 +{
    1.12 +  var m = new MutationObserver(function () {});
    1.13 +  var e = document.createElement('i');
    1.14 +  m.observe(e, { childList: true });
    1.15 +}
    1.16 +
    1.17 +function addPointlessMutationListener()
    1.18 +{
    1.19 +  var a = document.createElementNS("http://www.w3.org/1999/xhtml", "div");
    1.20 +  a.appendChild(document.createTextNode("1"));
    1.21 +
    1.22 +  function f() {
    1.23 +    window.removeEventListener("DOMSubtreeModified", f, false);
    1.24 +    a.insertAdjacentHTML("afterBegin", "<span></span>");
    1.25 +  };
    1.26 +
    1.27 +  window.addEventListener("DOMSubtreeModified", f, false);
    1.28 +}
    1.29 +
    1.30 +function boom()
    1.31 +{
    1.32 +  addEmptyMutationObserver();
    1.33 +  addPointlessMutationListener();
    1.34 +  document.body.outerHTML = "";
    1.35 +}
    1.36 +
    1.37 +</script>
    1.38 +</head>
    1.39 +
    1.40 +<body onload="boom();"></body>
    1.41 +</html>

mercurial