summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/682650-1.html
blob: 66ebc2f6287c1cadff31c484ff75fd76d12445c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html>
<head>
<script>

function repeatChar(s, n)
{
  while (s.length < n)
    s += s;
  return s.substr(0, n);
}

function boom()
{
  document.documentElement.contentEditable = "true";
  document.execCommand("inserthtml", false, "<button><\/button>");
  document.execCommand("inserthtml", false, repeatChar("i", 34646));
  document.execCommand("contentReadOnly", false, null);
  document.execCommand("removeformat", false, null);
  document.execCommand("hilitecolor", false, "red");
  document.execCommand("inserthtml", false, "a");
  document.execCommand("delete", false, null);
}

</script>
</head>

<body onload="boom();"></body>

</html>