Bug 963878 - Add crashtest. r=me
authorJesse Ruderman <jruderman@gmail.com>
Wed, 08 Nov 2017 08:47:09 -0500
changeset 695239 086fe27b86500e89f56637f540ba53d638981189
parent 695238 6a44b4d765a3a80833831cb58bc40761993a7f39
child 695240 32b3c3f8aae55ba4fce5244f09dfbb087a1dbac9
push id88368
push usernalexander@mozilla.com
push dateWed, 08 Nov 2017 22:39:54 +0000
reviewersme
bugs963878
milestone58.0a1
Bug 963878 - Add crashtest. r=me
layout/generic/crashtests/963878.html
layout/generic/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/layout/generic/crashtests/963878.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="UTF-8">
+<script>
+
+function repeatManyTimes(s)
+{
+    while (s.length < 0x8000)
+        s = s + s;
+    return s;
+}
+
+function boom()
+{
+    var initialText =
+        "\u062A" + // ARABIC LETTER TEH
+        repeatManyTimes(
+            "\u2029" + // PARAGRAPH SEPARATOR
+            "\u202D" + // LEFT-TO-RIGHT OVERRIDE
+            " "
+        ) +
+        "1"; // THE LONELIEST ASCII CHARACTER
+
+    var textNode = document.createTextNode(initialText);
+    document.getElementById("v").appendChild(textNode);
+    document.documentElement.offsetHeight;
+    textNode.data = "*" + textNode.data;
+}
+
+</script>
+</head>
+
+<body onload="boom();">
+<div id="v" style="display: table-row; font-size: 500%;"></div>
+</body>
+</html>
--- a/layout/generic/crashtests/crashtests.list
+++ b/layout/generic/crashtests/crashtests.list
@@ -559,16 +559,17 @@ asserts(0-3) load 914501.html # bug 1144
 load 914891.html
 load 915475.xhtml
 load 927558.html
 load 943509-1.html
 load 944909-1.html
 load 946167-1.html
 load 947158.html
 load 949932.html
+load 963878.html
 load 964078.html
 load 970710.html
 load 973701-1.xhtml
 load 973701-2.xhtml
 load 986899.html
 load 1001233.html
 load 1001258-1.html
 load 1001994.html