gecko-dev/xpcom/string/crashtests/395651-1.html
Andrew McCreight 4ae455cdc5 Bug 1403959, part 2 - Automatically generated eslint fixes. r=froydnj
These were generated with |./mach eslint --fix xpcom| with the
.eslintignore and xpcom/tests/unit/.eslintrc.js changes from the next
patch.

MozReview-Commit-ID: 8pKkICSK3JQ

--HG--
extra : rebase_source : bbc98050928f27160d8ca63d38aa0c383be95878
2017-09-28 15:49:04 -07:00

31 lines
708 B
HTML

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