xpcom/string/crashtests/395651-1.html
author Dan Minor <dminor@mozilla.com>
Fri, 02 Aug 2013 09:53:13 -0400
changeset 148713 d6d7900215918382ff6e0d59605142e93ebf148d
parent 27790 6ce912e80cf2f9b57fa6f6009ef33c338a0baf14
permissions -rw-r--r--
Bug 893085 - remotecppunittests.py should accept --apk option and test directories as well as files on the command line; r=ted

<html>
<head>
<script>

function X() { dump("X\n"); }
function Y() { dump("Y\n"); }

function boom()
{
  dump("Start9\n");

  var div = document.getElementById("v");

  var textNode = document.createTextNode(String.fromCharCode(0xDAAF)); // high surrogate
  div.appendChild(textNode);

  document.addEventListener("DOMCharacterDataModified", X, true);
  textNode.data += 'B';
  document.removeEventListener("DOMCharacterDataModified", X, true);

  document.addEventListener("DOMAttrModified", Y, true);
  textNode.data += String.fromCharCode(0xDF53); // low surrogate
  document.removeEventListener("DOMAttrModified", Y, true);
}

</script>
</head>

<body onload="boom();"><div id="v"></div></body>

</html>