summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/webextensions/internal
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-04-29 22:35:29 -0400
committerMatt A. Tobin <email@mattatobin.com>2018-04-29 22:35:29 -0400
commitd2bf1f169db9ba341636808b9902aee652727499 (patch)
treeb9c3087be59f36c7bbe79e81234118f814cebf0a /toolkit/mozapps/webextensions/internal
parent0641c2493a4033726c757234172ed50d9b96667e (diff)
downloadUXP-d2bf1f169db9ba341636808b9902aee652727499.tar
UXP-d2bf1f169db9ba341636808b9902aee652727499.tar.gz
UXP-d2bf1f169db9ba341636808b9902aee652727499.tar.lz
UXP-d2bf1f169db9ba341636808b9902aee652727499.tar.xz
UXP-d2bf1f169db9ba341636808b9902aee652727499.zip
[*AM] Expand the list for excluding internally used IDs from being sent to AUS
Diffstat (limited to 'toolkit/mozapps/webextensions/internal')
-rw-r--r--toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm13
1 files changed, 11 insertions, 2 deletions
diff --git a/toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm b/toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm
index 918ba5328..bdd3a81e7 100644
--- a/toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm
+++ b/toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm
@@ -929,8 +929,17 @@ this.AddonUpdateChecker = {
* down in-progress update requests
*/
checkForUpdates: function(aId, aUpdateKey, aUrl, aObserver) {
- // Exclude default theme
- if (aId != "{972ce4c6-7e08-4474-a285-3208198ce6fd}")
+ // Define an array of internally used IDs to NOT send to AUS such as the
+ // Default Theme. Please keep this list in sync with:
+ // toolkit/mozapps/extensions/AddonUpdateChecker.jsm
+ let internalIDS = [
+ '{972ce4c6-7e08-4474-a285-3208198ce6fd}',
+ 'modern@themes.mozilla.org'
+ ];
+
+ // If the ID is not in the array then go ahead and query AUS
+ if (internalIDS.indexOf(aId) == -1) {
return new UpdateParser(aId, aUpdateKey, aUrl, aObserver);
+ }
}
};