Bug 1264517 - Followup: remove no-longer-supported warning. r=gcp
authorHenry Chang <hchang@mozilla.com>
Thu, 05 May 2016 11:04:48 +0800
changeset 296156 d032f77a55f38746f404d9e9458d2f9ef762ecc1
parent 296155 5137c2a0f917f3ac094441915b1321724226f3c4
child 296157 e658172747f25598aaa15a730df1d2bcc3de3376
push id76228
push userhchang@mozilla.com
push dateThu, 05 May 2016 03:07:23 +0000
treeherdermozilla-inbound@d032f77a55f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgcp
bugs1264517
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1264517 - Followup: remove no-longer-supported warning. r=gcp
toolkit/components/urlformatter/nsURLFormatter.js
--- a/toolkit/components/urlformatter/nsURLFormatter.js
+++ b/toolkit/components/urlformatter/nsURLFormatter.js
@@ -156,15 +156,15 @@ nsURLFormatterService.prototype = {
       } catch(ex) {}
     }
 
     return this.formatURL(format);
   },
 
   trimSensitiveURLs: function uf_trimSensitiveURLs(aMsg) {
     // Only the google API key is sensitive for now.
-    return "@MOZ_GOOGLE_API_KEY@" ? aMsg.replace("@MOZ_GOOGLE_API_KEY@",
-                                                 "[trimmed-google-api-key]", "g")
+    return "@MOZ_GOOGLE_API_KEY@" ? aMsg.replace(/@MOZ_GOOGLE_API_KEY@/g,
+                                                 "[trimmed-google-api-key]")
                                   : aMsg;
   }
 };
 
 this.NSGetFactory = XPCOMUtils.generateNSGetFactory([nsURLFormatterService]);