summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-10-12 15:32:16 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-01 15:12:20 +0200
commit1803c596dc4490b0f6dc481dbdf8844655102998 (patch)
tree0f23c685a373b8fa80653f635bec5954cc324ca1 /toolkit
parent6042fdd44c0ec532b3e33d4f4046826fa1548d13 (diff)
downloaduxp-1803c596dc4490b0f6dc481dbdf8844655102998.tar.gz
Issue #1822 - Part 2: Remove Google API key parsing in URLS.
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/components/urlformatter/api_keys.in1
-rw-r--r--toolkit/components/urlformatter/nsURLFormatter.js8
2 files changed, 0 insertions, 9 deletions
diff --git a/toolkit/components/urlformatter/api_keys.in b/toolkit/components/urlformatter/api_keys.in
index 3fa48dd9a7..0edbcf26ac 100644
--- a/toolkit/components/urlformatter/api_keys.in
+++ b/toolkit/components/urlformatter/api_keys.in
@@ -1,4 +1,3 @@
#define MOZ_MOZILLA_API_KEY @MOZ_MOZILLA_API_KEY@
-#define MOZ_GOOGLE_API_KEY @MOZ_GOOGLE_API_KEY@
#define MOZ_BING_API_KEY @MOZ_BING_API_KEY@
#define MOZ_BING_API_CLIENTID @MOZ_BING_API_CLIENTID@
diff --git a/toolkit/components/urlformatter/nsURLFormatter.js b/toolkit/components/urlformatter/nsURLFormatter.js
index a4a8e1f475..8bb68bc45d 100644
--- a/toolkit/components/urlformatter/nsURLFormatter.js
+++ b/toolkit/components/urlformatter/nsURLFormatter.js
@@ -106,7 +106,6 @@ nsURLFormatterService.prototype = {
OS_VERSION: function() { return this.OSVersion; },
CHANNEL: () => UpdateUtils.UpdateChannel,
MOZILLA_API_KEY: () => "@MOZ_MOZILLA_API_KEY@",
- GOOGLE_API_KEY: () => "@MOZ_GOOGLE_API_KEY@",
BING_API_CLIENTID:() => "@MOZ_BING_API_CLIENTID@",
BING_API_KEY: () => "@MOZ_BING_API_KEY@",
DISTRIBUTION: function() { return this.distribution.id; },
@@ -146,13 +145,6 @@ nsURLFormatterService.prototype = {
}
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@/g,
- "[trimmed-google-api-key]")
- : aMsg;
}
};