From 4c8ea1ac1e918c4c52bef0a292fc67436ef5ed57 Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Sun, 1 Mar 2015 09:51:33 +0900 Subject: [PATCH] Bug 1108382 - Part 10: Do not use non-standard flag argument of String.prototype.replace in mobile/android/. r=rnewman --- mobile/android/chrome/content/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js index 2a917c528e19..ca2764dd1353 100644 --- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -7709,7 +7709,7 @@ var Distribution = { for (let key in localizeablePrefs) { try { let value = localizeablePrefs[key]; - value = value.replace("%LOCALE%", locale, "g"); + value = value.replace(/%LOCALE%/g, locale); localizedString.data = "data:text/plain," + key + "=" + value; defaults.setComplexValue(key, Ci.nsIPrefLocalizedString, localizedString); } catch (e) { /* ignore bad prefs and move on */ }