summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/1444630.html
blob: 72ce9afcede17b09f067da07fc11d575a9a8b7ef (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
<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
<script type="text/javascript">
function load()
{
  let textarea = document.getElementById("editor");
  textarea.focus();

  const { maybeOnSpellCheck } = SpecialPowers.ChromeUtils.import(
    "resource://reftest/AsyncSpellCheckTestHelper.jsm"
  );
  maybeOnSpellCheck(textarea, () => {
    let isc = SpecialPowers.wrap(textarea).editor.getInlineSpellChecker(false);
    let sc = isc.spellChecker;

    textarea.setAttribute("lang", "en-US");
    sc.UpdateCurrentDictionary(() => {
      document.documentElement.classList.remove("reftest-wait");
    });
    sc.UninitSpellChecker();
  });
}
</script>
</head>
<body onload="load()">
<textarea id="editor" spellchecker="true">ABC</textarea>
</body>
</html>