mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1147311 - Migrate x-central-euro, x-baltic and tr to x-western in the font.language.group pref. r=mak.
This commit is contained in:
parent
dabbd94919
commit
859359886a
@ -1661,7 +1661,7 @@ BrowserGlue.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_migrateUI: function BG__migrateUI() {
|
_migrateUI: function BG__migrateUI() {
|
||||||
const UI_VERSION = 28;
|
const UI_VERSION = 29;
|
||||||
const BROWSER_DOCURL = "chrome://browser/content/browser.xul";
|
const BROWSER_DOCURL = "chrome://browser/content/browser.xul";
|
||||||
let currentUIVersion = 0;
|
let currentUIVersion = 0;
|
||||||
try {
|
try {
|
||||||
@ -2016,6 +2016,21 @@ BrowserGlue.prototype = {
|
|||||||
Services.prefs.clearUserPref("browser.devedition.showCustomizeButton");
|
Services.prefs.clearUserPref("browser.devedition.showCustomizeButton");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (currentUIVersion < 29) {
|
||||||
|
let group = null;
|
||||||
|
try {
|
||||||
|
group = Services.prefs.getComplexValue("font.language.group",
|
||||||
|
Ci.nsIPrefLocalizedString);
|
||||||
|
} catch (ex) {}
|
||||||
|
if (group &&
|
||||||
|
["tr", "x-baltic", "x-central-euro"].some(g => g == group.data)) {
|
||||||
|
// Latin groups were consolidated.
|
||||||
|
group.data = "x-western";
|
||||||
|
Services.prefs.setComplexValue("font.language.group",
|
||||||
|
Ci.nsIPrefLocalizedString, group);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Update the migration version.
|
// Update the migration version.
|
||||||
Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
|
Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user