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
parent 8a552861f3
commit af910f83c2

View File

@ -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();