editor/libeditor/crashtests/1623166.html
author Butkovits Atila <abutkovits@mozilla.com>
Sun, 25 Sep 2022 02:06:13 +0300
changeset 636394 94436fdd766dbf69bdec71e091ad913d003c971d
parent 636050 9b15baab6f77d09eca2956276f66fee97555e4a1
permissions -rw-r--r--
Backed out changeset f6031e0a3a0b (bug 1790790) for causing telemetry failures. CLOSED TREE

<html>
<head>
<script>
document.addEventListener('DOMContentLoaded', () => {
  const code = document.querySelector("code[contenteditable=false]");
  // For emulating the traditional behavior, collapse Selection to end of the
  // <code> which is the last inline container of the <body>.
  getSelection().collapse(code, code.childNodes.length);
  code.querySelector("br").contentEditable = true;
  document.execCommand("indent");
});
</script>
<body>
<b contenteditable hidden>
    <script></script>
    <code contenteditable="false">
        <br>
</body>
</head>
</html>