Backed out changeset 935977d665a9 (bug 1615853) for causing browser_search_subdialogs_within_preferences_5.js to permafail

This commit is contained in:
Ciure Andrei 2020-02-19 19:14:25 +02:00
Родитель 28fcfbb1ca
Коммит 4ae82ebf22
1 изменённых файлов: 1 добавлений и 10 удалений

Просмотреть файл

@ -289,7 +289,7 @@ var gMainPane = {
_backoffIndex: 0,
/**
* Initialization of gMainPane.
* Initialization of this.
*/
init() {
function setEventListener(aId, aEventType, aCallback) {
@ -520,15 +520,6 @@ var gMainPane = {
// Initializes the fonts dropdowns displayed in this pane.
this._rebuildFonts();
if (Services.prefs.getBoolPref("intl.charset.detector.ng.enabled", false)) {
let advancedBtn = document.getElementById("advancedFonts");
let l10nIds = advancedBtn
.getAttribute("search-l10n-ids")
.split(/\s*,\s*/);
l10nIds = l10nIds.filter(id => !id.includes("languages-fallback"));
advancedBtn.setAttribute("search-l10n-ids", l10nIds.join(", "));
}
this.updateOnScreenKeyboardVisibility();
// Show translation preferences if we may: