Bug 1638609 - fix add-ons discovery pane "find more addons" and privacy links. r=mkmelin a=wsmwk
authorKhushil Mistry <khushil324@gmail.com>
Fri, 19 Jun 2020 00:45:25 +0300
changeset 39424 3c83aafae22feafa3dacae5ce17c84977c24a80e
parent 39423 19d051a4e20875f2ba9f2b43516d5bf4e850ac4f
child 39425 ddae43140696965f972aef04eb4c2b1732b634bd
push id402
push userclokep@gmail.com
push dateMon, 29 Jun 2020 20:48:04 +0000
reviewersmkmelin, wsmwk
bugs1638609
Bug 1638609 - fix add-ons discovery pane "find more addons" and privacy links. r=mkmelin a=wsmwk
mail/app/profile/all-thunderbird.js
mail/base/content/contentAreaClick.js
--- a/mail/app/profile/all-thunderbird.js
+++ b/mail/app/profile/all-thunderbird.js
@@ -1243,8 +1243,11 @@ pref("toolkit.telemetry.bhrPing.enabled"
   pref("toolkit.telemetry.ecosystemtelemetry.enabled", false);
 #endif
 
 #ifdef XP_WIN
 pref("mail.minimizeToTray", false);
 #endif
 
 pref("prompts.defaultModalType", 3);
+
+// The URL for the privacy policy related to recommended extensions.
+pref("extensions.recommendations.privacyPolicyUrl", "https://www.mozilla.org/en-US/privacy/thunderbird/#addons");
--- a/mail/base/content/contentAreaClick.js
+++ b/mail/base/content/contentAreaClick.js
@@ -255,17 +255,20 @@ function openUILinkIn(url, where, option
 
 function openTrustedLinkIn(url, where, aParams) {
   var params = aParams;
 
   if (!params) {
     params = {};
   }
 
-  if (url.startsWith("about:certificate")) {
+  if (
+    url.startsWith("about:certificate") ||
+    (url.startsWith("https://addons.thunderbird.net") && where == "tab")
+  ) {
     document.getElementById("tabmail").openTab("contentTab", {
       contentPage: url,
       clickHandler: "specialTabs.aboutClickHandler(event);",
     });
     return;
   }
 
   if (!params.triggeringPrincipal) {