Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit df78d60

Browse files
author
Oana Pop Rus
committed
Backed out changeset 0810ad586986 (bug 1551276) for wpt failures in ar-ISO-8859-6-late.tentative.html on a CLOSED TREE
1 parent 0870dac commit df78d60

157 files changed

Lines changed: 2125 additions & 7027 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 0 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

browser/components/preferences/fonts.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
55

6-
/* import-globals-from ../../base/content/utilityOverlay.js */
76
/* import-globals-from ../../../toolkit/mozapps/preferences/fontbuilder.js */
87

98
// browser.display.languageList LOCK ALL when LOCKED
@@ -30,10 +29,6 @@ Preferences.addAll([
3029
{ id: "intl.charset.fallback.override", type: "string" },
3130
]);
3231

33-
document.getElementById("FallbackGroupbox").hidden = Services.prefs.getBoolPref(
34-
"intl.charset.detector.ng.enabled"
35-
);
36-
3732
var gFontsDialog = {
3833
_selectLanguageGroupPromise: Promise.resolve(),
3934

browser/components/preferences/fonts.xhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
</groupbox>
235235

236236
<!-- Text Encoding -->
237-
<groupbox id="FallbackGroupbox">
237+
<groupbox>
238238
<label><html:h2 data-l10n-id="fonts-languages-fallback-header"/></label>
239239
<description data-l10n-id="fonts-languages-fallback-desc"/>
240240
<hbox align="center">

docshell/base/nsDocShell.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,8 +1290,7 @@ nsDocShell::GatherCharsetMenuTelemetry() {
12901290
Telemetry::LABELS_ENCODING_OVERRIDE_SITUATION::RemoteNonTld);
12911291
}
12921292
break;
1293-
case kCharsetFromInitialAutoDetection:
1294-
case kCharsetFromFinalAutoDetection:
1293+
case kCharsetFromAutoDetection:
12951294
// Changing charset on unlabeled doc where chardet fired
12961295
if (isFileURL) {
12971296
Telemetry::AccumulateCategorical(
@@ -1922,8 +1921,7 @@ nsDocShell::GetCharsetAutodetected(bool* aCharsetAutodetected) {
19221921
}
19231922
int32_t source = doc->GetDocumentCharacterSetSource();
19241923

1925-
if (source == kCharsetFromInitialAutoDetection ||
1926-
source == kCharsetFromFinalAutoDetection ||
1924+
if (source == kCharsetFromAutoDetection ||
19271925
source == kCharsetFromUserForcedAutoDetection) {
19281926
*aCharsetAutodetected = true;
19291927
}

docshell/test/browser/browser_bug1543077-1.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ function test() {
1010

1111
function afterOpen() {
1212
is(
13-
content.document.documentElement.textContent.indexOf("\u0434"),
13+
content.document.documentElement.textContent.indexOf("\u00A4"),
1414
131,
15-
"Parent doc should be IBM866 initially"
15+
"Parent doc should be windows-1252 initially"
1616
);
1717

1818
is(
19-
content.frames[0].document.documentElement.textContent.indexOf("\u0434"),
19+
content.frames[0].document.documentElement.textContent.indexOf("\u00A4"),
2020
87,
21-
"Child doc should be IBM866 initially"
21+
"Child doc should be windows-1252 initially"
2222
);
2323
}
2424

docshell/test/browser/browser_bug1543077-2.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ function test() {
1010

1111
function afterOpen() {
1212
is(
13-
content.document.documentElement.textContent.indexOf("\u0412"),
13+
content.document.documentElement.textContent.indexOf("\u201A"),
1414
134,
15-
"Parent doc should be IBM866 initially"
15+
"Parent doc should be windows-1252 initially"
1616
);
1717

1818
is(
19-
content.frames[0].document.documentElement.textContent.indexOf("\u0412"),
19+
content.frames[0].document.documentElement.textContent.indexOf("\u201A"),
2020
90,
21-
"Child doc should be IBM866 initially"
21+
"Child doc should be windows-1252 initially"
2222
);
2323
}
2424

docshell/test/browser/browser_bug1543077-3.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ function test() {
1010

1111
function afterOpen() {
1212
is(
13-
content.document.documentElement.textContent.indexOf("\u3042"),
13+
content.document.documentElement.textContent.indexOf("\u001B"),
1414
136,
15-
"Parent doc should be ISO-2022-JP initially"
15+
"Parent doc should be windows-1252 initially"
1616
);
1717

1818
is(
19-
content.frames[0].document.documentElement.textContent.indexOf("\u3042"),
19+
content.frames[0].document.documentElement.textContent.indexOf("\u001B"),
2020
92,
21-
"Child doc should be ISO-2022-JP initially"
21+
"Child doc should be windows-1252 initially"
2222
);
2323
}
2424

docshell/test/browser/browser_bug1543077-4.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ function test() {
1010

1111
function afterOpen() {
1212
is(
13-
content.document.documentElement.textContent.indexOf("\u0434"),
13+
content.document.documentElement.textContent.indexOf("\u00A4"),
1414
131,
15-
"Parent doc should be IBM866 initially"
15+
"Parent doc should be windows-1252 initially"
1616
);
1717

1818
is(
19-
content.frames[0].document.documentElement.textContent.indexOf("\u0412"),
19+
content.frames[0].document.documentElement.textContent.indexOf("\u201A"),
2020
90,
21-
"Child doc should be IBM866 initially"
21+
"Child doc should be windows-1252 initially"
2222
);
2323
}
2424

dom/base/nsContentUtils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
#include "nsIAsyncVerifyRedirectCallback.h"
151151
#include "nsICategoryManager.h"
152152
#include "nsIChannelEventSink.h"
153+
#include "nsICharsetDetectionObserver.h"
153154
#include "nsIConsoleService.h"
154155
#include "nsIContent.h"
155156
#include "nsIContentInlines.h"

dom/html/nsHTMLDocument.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,7 @@ void nsHTMLDocument::TryParentCharset(nsIDocShell* aDocShell,
288288
return;
289289
}
290290
if (kCharsetFromParentForced == parentSource ||
291-
kCharsetFromUserForced == parentSource ||
292-
kCharsetFromUserForcedAutoDetection == parentSource) {
291+
kCharsetFromUserForced == parentSource) {
293292
if (WillIgnoreCharsetOverride() ||
294293
!IsAsciiCompatible(aEncoding) || // if channel said UTF-16
295294
!IsAsciiCompatible(parentCharset)) {

0 commit comments

Comments
 (0)