Bug 1558596 - Make middleclick close tabs on all platforms. r=frg a=frg
--- a/suite/browser/tabbrowser.xml
+++ b/suite/browser/tabbrowser.xml
@@ -1188,19 +1188,19 @@
]]>
</body>
</method>
<method name="onTabClick">
<parameter name="event"/>
<body>
<![CDATA[
- if (event.button != 1 || event.target.localName != 'tab' ||
- (Services.prefs.getBoolPref("middlemouse.contentLoadURL") &&
- !Services.prefs.getBoolPref("general.autoScroll")))
+ // A middle mouse button click on a tab is a short cut for
+ // closing that tab.
+ if (event.button != 1 || event.target.localName != 'tab')
return;
this.removeTab(event.target);
event.stopPropagation();
]]>
</body>
</method>
--- a/suite/mailnews/content/tabmail.xml
+++ b/suite/mailnews/content/tabmail.xml
@@ -666,29 +666,16 @@
if (!this.currentTabInfo)
this.currentTabInfo = this.tabInfo[0];
// save the old tab state before we change the current tab
this.saveTabState(this.currentTabInfo);
]]>
</body>
</method>
- <method name="onTabClick">
- <parameter name="event"/>
- <body>
- <![CDATA[
- // a middle mouse button click on a tab is a short cut for closing a tab
- if (event.button != 1 || event.target.localName != "tab")
- return;
- this.removeTab(event.target);
- event.stopPropagation();
- ]]>
- </body>
- </method>
-
<method name="setTabTitle">
<parameter name="aTabInfo"/>
<body>
<![CDATA[
// First find the tab and its index.
let tabInfo;
let index;
if (aTabInfo)