diff --git a/dom/base/test/chrome/test_nsITextInputProcessorCallback_at_changing_default_value_of_textarea.html b/dom/base/test/chrome/test_nsITextInputProcessorCallback_at_changing_default_value_of_textarea.html index e69c79155dbb..c27ab88ccfc8 100644 --- a/dom/base/test/chrome/test_nsITextInputProcessorCallback_at_changing_default_value_of_textarea.html +++ b/dom/base/test/chrome/test_nsITextInputProcessorCallback_at_changing_default_value_of_textarea.html @@ -10,6 +10,10 @@ SimpleTest.waitForExplicitFinish(); SimpleTest.waitForFocus(async () => { + await SpecialPowers.pushPrefEnv({ + set: [["test.ime_content_observer.assert_invalid_cache", true]], + }); + const textarea = document.createElement("textarea"); document.body.appendChild(textarea); textarea.focus(); diff --git a/dom/base/test/chrome/window_nsITextInputProcessor.xhtml b/dom/base/test/chrome/window_nsITextInputProcessor.xhtml index 8536ab758f0d..cee017eb480f 100644 --- a/dom/base/test/chrome/window_nsITextInputProcessor.xhtml +++ b/dom/base/test/chrome/window_nsITextInputProcessor.xhtml @@ -4966,6 +4966,10 @@ async function runTextNotificationChangesDuringNoFrame() { async function runTests() { + await SpecialPowers.pushPrefEnv({ + set: [["test.ime_content_observer.assert_invalid_cache", true]], + }); + textareaInFrame = iframe.contentDocument.getElementById("textarea"); runBeginInputTransactionMethodTests(); runReleaseTests(); diff --git a/dom/base/test/test_text_change_notifications_when_inserting_text_containing_line_breaks.html b/dom/base/test/test_text_change_notifications_when_inserting_text_containing_line_breaks.html index 676fbd5ac046..6d7710fc528b 100644 --- a/dom/base/test/test_text_change_notifications_when_inserting_text_containing_line_breaks.html +++ b/dom/base/test/test_text_change_notifications_when_inserting_text_containing_line_breaks.html @@ -9,6 +9,10 @@ SimpleTest.waitForExplicitFinish(); SimpleTest.waitForFocus(async () => { + await SpecialPowers.pushPrefEnv({ + set: [["test.ime_content_observer.assert_invalid_cache", true]], + }); + const editingHost = document.querySelector("div[contenteditable]"); const TIP = SpecialPowers.Cc["@mozilla.org/text-input-processor;1"].createInstance( SpecialPowers.Ci.nsITextInputProcessor diff --git a/dom/events/test/test_text_event_in_content.html b/dom/events/test/test_text_event_in_content.html index 3d7735edb168..d99d6704faeb 100644 --- a/dom/events/test/test_text_event_in_content.html +++ b/dom/events/test/test_text_event_in_content.html @@ -12,7 +12,10 @@