Bug 1570586 - fix help menu links after bug 1567103. r+a=jorgk
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Thu, 01 Aug 2019 10:58:08 +0300
changeset 35270 b84302fec4df8e60a6658d4ce8444e348c1e2cc7
parent 35269 c11139a488bed744ca3b24ec0e7cf16f4c1ddcfe
child 35271 b557db605509cf9a0166a264144268ac021864dc
push id2475
push usermozilla@jorgk.com
push dateFri, 02 Aug 2019 20:07:29 +0000
treeherdercomm-beta@c7b7a4c6679d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1570586, 1567103
Bug 1570586 - fix help menu links after bug 1567103. r+a=jorgk
mail/base/content/utilityOverlay.js
--- a/mail/base/content/utilityOverlay.js
+++ b/mail/base/content/utilityOverlay.js
@@ -166,21 +166,19 @@ function togglePaneSplitter(splitterId) 
   var state = splitter.getAttribute("state");
   if (state == "collapsed")
     splitter.setAttribute("state", "open");
   else
     splitter.setAttribute("state", "collapsed");
 }
 
 // openUILink handles clicks on UI elements that cause URLs to load.
-// Firefox and SeaMonkey have a function with the same name,
-// so extensions can use this everywhere to open links.
 // We currently only react to left click in Thunderbird.
 function openUILink(url, event) {
-  if (event.button == 0) {
+  if (!event.button) {
     PlacesUtils.history.insert({
       url,
       visits: [{
         date: new Date(),
       }],
     }).catch(Cu.reportError);
     messenger.launchExternalURL(url);
   }