From 9c72258e96fe22dd93db25ef2c0672f3e09bf907 Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Tue, 10 Jun 2014 10:35:44 -0700 Subject: [PATCH] Bug 1020502 - Flush Services.strings on locale change. r=margaret --- mobile/android/chrome/content/browser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js index 22a3c81bcad..b3d7815b53b 100644 --- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -1676,6 +1676,10 @@ var BrowserApp = { } Services.prefs.setBoolPref("intl.locale.matchOS", !aData); + + // Blow away the string cache so that future lookups get the + // correct locale. + Services.strings.flushBundles(); break; default: