зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1016161 - Flush prefs on handling a locale change event. r=mfinkle
This commit is contained in:
Родитель
edc0ac508a
Коммит
6ddebe9b7a
|
@ -1662,6 +1662,10 @@ var BrowserApp = {
|
|||
|
||||
Services.prefs.setBoolPref("intl.locale.matchOS", !aData);
|
||||
|
||||
// Ensure that this choice is immediately persisted, because
|
||||
// Gecko won't be told again if it forgets.
|
||||
Services.prefs.savePrefFile(null);
|
||||
|
||||
// Blow away the string cache so that future lookups get the
|
||||
// correct locale.
|
||||
Services.strings.flushBundles();
|
||||
|
|
Загрузка…
Ссылка в новой задаче