Bug 482801 - Middle-clicking the selected tab should not focus the tab bar. r=gavin
authorDão Gottwald <dao@mozilla.com>
Wed, 06 May 2009 10:29:38 +0200
changeset 28028 2f8e64eb3691d8ff8f0c21444e6a2168e7cc6c43
parent 28027 d64c39dcc52de418dc031291a56e9f7159c5aabb
child 28029 7518078cb842d44e7019b0481fedb2566f176cc0
push id6847
push userdgottwald@mozilla.com
push dateWed, 06 May 2009 08:30:15 +0000
treeherdermozilla-central@2f8e64eb3691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs482801
milestone1.9.2a1pre
Bug 482801 - Middle-clicking the selected tab should not focus the tab bar. r=gavin
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -3395,16 +3395,20 @@
           event.stopPropagation();
         }
         else {
           this.style.MozUserFocus = 'ignore';
           this.clientTop; // just using this to flush style updates
         }
       ]]>
       </handler>
+      <handler event="mousedown" button="1">
+        this.style.MozUserFocus = 'ignore';
+        this.clientTop;
+      </handler>
       <handler event="mousedown" button="2">
         this.style.MozUserFocus = 'ignore';
         this.clientTop;
       </handler>
       <handler event="mouseup">
         this.style.MozUserFocus = '';
       </handler>
     </handlers>