Bug 1853986. Let "Don't translate new lines for IME" ride to release. r=masayuki

This is a minimal version. The corresponding code cleanup will
be done in a follow up.

Differential Revision: https://phabricator.services.mozilla.com/D198045
This commit is contained in:
Jeff Muizelaar 2024-01-10 18:53:21 +00:00
parent 90780eb126
commit a1ee18724c
6 changed files with 7 additions and 7 deletions

View File

@ -95,7 +95,7 @@ const contenteditable = document.querySelector("div[contenteditable]");
const { AppConstants } = ChromeUtils.importESModule(
"resource://gre/modules/AppConstants.sys.mjs"
);
const kLF = navigator.platform.startsWith("Win") && !AppConstants.EARLY_BETA_OR_EARLIER ? "\r\n" : "\n";
const kLF = navigator.platform.startsWith("Win") && false ? "\r\n" : "\n";
function getNativeText(aXPText)
{
if (kLF == "\n") {

View File

@ -20,7 +20,7 @@ const { AppConstants } = ChromeUtils.importESModule(
SimpleTest.waitForExplicitFinish();
const kLineBreak = navigator.platform.indexOf("Win") == 0 && !AppConstants.EARLY_BETA_OR_EARLIER ? "\r\n" : "\n";
const kLineBreak = navigator.platform.indexOf("Win") == 0 && false ? "\r\n" : "\n";
SimpleTest.waitForFocus(async () => {
const gUtils = window.windowUtils;

View File

@ -10,7 +10,7 @@
const { AppConstants } = ChromeUtils.importESModule(
"resource://gre/modules/AppConstants.sys.mjs"
);
const kLineBreak = navigator.platform.indexOf("Win") == 0 && !AppConstants.EARLY_BETA_OR_EARLIER ? "\r\n" : "\n";
const kLineBreak = navigator.platform.indexOf("Win") == 0 && false ? "\r\n" : "\n";
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(async () => {

View File

@ -50,7 +50,7 @@
# undef small
#endif // defined(small)
#if defined(XP_WIN) && !defined(EARLY_BETA_OR_EARLIER)
#if defined(XP_WIN) && 0
# define TRANSLATE_NEW_LINES
#endif

View File

@ -24,7 +24,7 @@ SimpleTest.waitForFocus(runTests);
const { AppConstants } = ChromeUtils.importESModule(
"resource://gre/modules/AppConstants.sys.mjs"
);
const kLF = !navigator.platform.indexOf("Win") && !AppConstants.EARLY_BETA_OR_EARLIER ? "\r\n" : "\n";
const kLF = !navigator.platform.indexOf("Win") && false ? "\r\n" : "\n";
function runTests() {
var fm = Services.focus;

View File

@ -187,8 +187,8 @@ function getHTMLEditorIMESupport(aWindow)
const kIsWin = (navigator.platform.indexOf("Win") == 0);
const kIsMac = (navigator.platform.indexOf("Mac") == 0);
const kLFLen = (kIsWin && !AppConstants.EARLY_BETA_OR_EARLIER) ? 2 : 1;
const kLF = (kIsWin && !AppConstants.EARLY_BETA_OR_EARLIER) ? "\r\n" : "\n";
const kLFLen = (kIsWin && false) ? 2 : 1;
const kLF = (kIsWin && false) ? "\r\n" : "\n";
function checkQueryContentResult(aResult, aMessage)
{