bug 395651 - crash test by Jesse Ruderman.
authorBob Clary <bclary@bclary.com>
Fri, 24 Apr 2009 10:08:22 -0700
changeset 27790 6ce912e80cf2f9b57fa6f6009ef33c338a0baf14
parent 27789 e184c9ab1e466a01629acef0250b7997841b6dfa
child 27791 76a886443196216f255a7a6ddf185dff1f604fbe
push id6720
push userbclary@mozilla.com
push dateFri, 24 Apr 2009 17:10:36 +0000
treeherdermozilla-central@a1e84240b5c9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs395651
milestone1.9.2a1pre
bug 395651 - crash test by Jesse Ruderman.
xpcom/string/crashtests/395651-1.html
xpcom/string/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/xpcom/string/crashtests/395651-1.html
@@ -0,0 +1,31 @@
+<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>
--- a/xpcom/string/crashtests/crashtests.list
+++ b/xpcom/string/crashtests/crashtests.list
@@ -1,1 +1,2 @@
 load 394275-1.html
+load 395651-1.html