Bug 612305 - tabbrowser.xml is only interested in resize events for the chrome window, should ignore those for content windows. r=gavin
authorDão Gottwald <dao@mozilla.com>
Tue, 16 Nov 2010 10:19:00 +0100
changeset 57569 b0ef3f1aabb2a7340ee845d8b6411430674da73f
parent 57568 ecd854d4b939686100e7d86e86fa4ceddaf29e59
child 57570 539b6dd6ded6fb9712536622a92a1bc4058dd9f6
push id16985
push userdgottwald@mozilla.com
push dateTue, 16 Nov 2010 09:22:31 +0000
treeherdermozilla-central@a42e9b001bc8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs612305
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 612305 - tabbrowser.xml is only interested in resize events for the chrome window, should ignore those for content windows. r=gavin
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -2740,16 +2740,18 @@
         ]]></body>
       </method>
 
       <method name="handleEvent">
         <parameter name="aEvent"/>
         <body><![CDATA[
           switch (aEvent.type) {
             case "resize":
+              if (aEvent.target != window)
+                break;
               var width = this.mTabstrip.boxObject.width;
               if (width != this.mTabstripWidth) {
                 this.adjustTabstrip();
                 this._fillTrailingGap();
                 this._handleTabSelect();
                 this.mTabstripWidth = width;
               }
               break;