author Masayuki Nakano <>
Sun, 16 Jan 2022 06:21:17 +0000
changeset 604634 9ef0614a59629916c1e182eb8eda055b0b0e8b32
parent 278643 67ea3d1ffcdb3c6f8d31781c8a5f5eb64a278254
permissions -rw-r--r--
Bug 1749299 - Make `HTMLEditor::HandleInsertLinefeed()` stop handling it if insertion point cannot have text nodes r=m_kato Ideally, it should not be called when the editor cannot insert new text node. However, the callers are complicated. Therefore, let's check in it for avoiding making the callers more complicated. Fortunately, this is not realistic path for normal web apps. Therefore, the compatibility of the behavior is not matter. That's the reason why this patch does not have a test comparing the result. Differential Revision:

  <meta charset="utf-8">
  <title>Test for Bug 1226015</title>
  <script type="application/javascript">
    window.SimpleTest = parent.SimpleTest; =; =;
    window.isnot = parent.isnot;
    window.ok = parent.ok;
  <script type="application/javascript" src="common.js"></script>
<a target="_blank" href="">Mozilla Bug 1226015</a>
<p id="display"></p>
<div id="content" style="display: none">

<pre id="test">
<script type="application/javascript">

/** Test for Bug 1226015 **/

function testFunc(done_cb) {
  var utterance = new SpeechSynthesisUtterance();
  utterance.lang = 'it-IT-failatstart';


  ok(true, "we didn't crash, that is good.")

// Run test with no global queue, and then run it with a global queue.