mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
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:
parent
90780eb126
commit
a1ee18724c
@ -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") {
|
||||
|
@ -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;
|
||||
|
@ -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 () => {
|
||||
|
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user