Bug 284379: Enabling middlemouse.contentLoadURL and middle clicking a tab should still close tab, patch by Adam Guthrie <ispiked@gmail.com>, r=rob_strong

git-svn-id: svn://10.0.0.236/trunk@186199 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com 2005-12-17 01:18:30 +00:00
parent 27fadfad5d
commit 7af7af822c

View File

@ -755,8 +755,7 @@
<parameter name="event"/>
<body>
<![CDATA[
if (event.button != 1 || event.target.localName != 'tab' ||
this.mPrefs.getBoolPref("middlemouse.contentLoadURL"))
if (event.button != 1 || event.target.localName != 'tab')
return;
this.removeTab(event.target);