From 80679b2893d7c5e238c50d2d47c7407caca74684 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Tue, 31 Jan 2012 03:15:00 +0900 Subject: [PATCH] failed to update the size of the floating tab bar in some cases (ex. Firebug's panel) --- modules/browser.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/browser.js b/modules/browser.js index c9cf6dde..aebf4373 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -4114,14 +4114,17 @@ TreeStyleTabBrowser.prototype = { { if ( !aEvent.originalTarget || - !(aEvent.originalTarget instanceof Ci.nsIDOMWindow) || - aEvent.originalTarget.top != this.mTabBrowser.contentWindow + !(aEvent.originalTarget instanceof Ci.nsIDOMWindow) ) return; - this.mTabBrowser.mTabContainer.adjustTabstrip(); - this.updateInvertedTabContentsOrder(true); - this.updateFloatingTabbar(this.kTABBAR_UPDATE_BY_WINDOW_RESIZE); + var resizedTopFrame = aEvent.originalTarget.top; + if (resizedTopFrame == this.mTabBrowser.contentWindow || + resizedTopFrame == this.window) { + this.mTabBrowser.mTabContainer.adjustTabstrip(); + this.updateInvertedTabContentsOrder(true); + this.updateFloatingTabbar(this.kTABBAR_UPDATE_BY_WINDOW_RESIZE); + } }, onPopupShowing : function TSTBrowser_onPopupShowing(aEvent)