Bug 1645271 - Prevent the opening of links in the Account Central content Tab. r=darktrojan a=wsmwk
authorAlessandro Castellani <alessandro@thunderbird.net>
Thu, 11 Jun 2020 18:45:29 -0700
changeset 39387 26916e2d8a687d8fb33a2ca64775c8aadef0e805
parent 39386 7865094fac045f3232f659b3cd7b7667cc4b46cf
child 39388 b4b0572782d077647e524d68c69b68db3acc7a4e
push id402
push userclokep@gmail.com
push dateMon, 29 Jun 2020 20:48:04 +0000
reviewersdarktrojan, wsmwk
bugs1645271
Bug 1645271 - Prevent the opening of links in the Account Central content Tab. r=darktrojan a=wsmwk
mailnews/base/content/msgAccountCentral.js
--- a/mailnews/base/content/msgAccountCentral.js
+++ b/mailnews/base/content/msgAccountCentral.js
@@ -255,12 +255,13 @@ function subscribe() {
 }
 
 /**
  * Open the target's url on an external browser.
  *
  * @param {Event} event - The keypress or click event.
  */
 function openLink(event) {
+  event.preventDefault();
   let messenger = Cc["@mozilla.org/messenger;1"].createInstance();
   messenger = messenger.QueryInterface(Ci.nsIMessenger);
   messenger.launchExternalURL(event.target.href);
 }