Bug 507566 - Add crashtest. r=mats
authorJesse Ruderman <jruderman@gmail.com>
Sun, 01 Jul 2018 18:06:50 +0200
changeset 813039 e80709fd8002ecccaefa480b59d31b43a7dfeddb
parent 813038 719e70e65dc5429d7712ac2e0301ab4a37c77173
child 813040 e14825bf17d03d70558b65a9cc72c9343d28e437
push id114747
push userbmo:hsivonen@hsivonen.fi
push dateMon, 02 Jul 2018 09:48:01 +0000
reviewersmats
bugs507566
milestone63.0a1
Bug 507566 - Add crashtest. r=mats
layout/generic/crashtests/507566.html
layout/generic/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/layout/generic/crashtests/507566.html
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<script type="text/javascript">
+
+var count = 0;
+
+function boom()
+{
+  var r = document.body; while(r.firstChild) { r.removeChild(r.firstChild); }
+  
+  document.body = document.createElementNS("http://www.w3.org/1999/xhtml", "body");
+  var div = document.createElementNS("http://www.w3.org/1999/xhtml", "div");
+  var span = document.createElementNS("http://www.w3.org/1999/xhtml", "span");
+  span.setAttributeNS(null, "contenteditable", "true");
+  document.documentElement.appendChild(span);
+  (document.body || document.documentElement).appendChild(div);
+  var text = document.createTextNode("\u200F\uE8D4");
+  document.body.appendChild(text);
+  document.documentElement.appendChild(document.body);
+  document.documentElement.offsetHeight;
+  text.data += "\uF0C5";
+  document.execCommand("selectAll", false, null);
+
+  if (++count < 20)
+    setTimeout(boom, 0);
+}
+
+</script>
+</head>
+
+<body onload="boom();"></body>
+</html>
--- a/layout/generic/crashtests/crashtests.list
+++ b/layout/generic/crashtests/crashtests.list
@@ -365,16 +365,17 @@ load 496742.html
 load 499138.html
 load 499857-1.html
 load 499862-1.html
 asserts(0-3) load 499885-1.xhtml # Bug 1220265
 load 501535-1.html
 load 503961-1.xhtml
 load 503961-2.html
 load 505912-1.html
+load 507566.html
 load 508154-1.xhtml
 load 508168-1.html
 load 508816-1.xul
 load 508908-1.html
 load 509749-1.html
 load 511482.html
 load 512724-1.html
 load 512725-1.html