Bug 1016161 - Flush prefs on handling a locale change event. r=mfinkle

This commit is contained in:
Richard Newman 2014-06-10 10:49:38 -07:00
Родитель edc0ac508a
Коммит 6ddebe9b7a
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -1662,6 +1662,10 @@ var BrowserApp = {
Services.prefs.setBoolPref("intl.locale.matchOS", !aData); 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 // Blow away the string cache so that future lookups get the
// correct locale. // correct locale.
Services.strings.flushBundles(); Services.strings.flushBundles();