From b6e9b6743006b2af4a5adabb53fb73247b0cc831 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Wed, 24 Nov 2010 23:46:57 +0900 Subject: [PATCH] don't set needless attributes for tab elements on Minefield. --- content/treestyletab/treestyletabbrowser.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index d787ebec..55510a4a 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -809,12 +809,14 @@ TreeStyleTabBrowser.prototype = { } else { aTab.removeAttribute('align'); - aTab.setAttribute('maxwidth', 250); - aTab.setAttribute('minwidth', this.mTabBrowser.mTabContainer.mTabMinWidth); - aTab.setAttribute('width', '0'); - aTab.setAttribute('flex', 100); - aTab.maxWidth = 250; - aTab.minWidth = this.mTabBrowser.mTabContainer.mTabMinWidth; + if ('mTabMinWidth' in this.mTabBrowser.mTabContainer) { // Firefox 3.6 or older + aTab.setAttribute('maxwidth', 250); + aTab.setAttribute('minwidth', this.mTabBrowser.mTabContainer.mTabMinWidth); + aTab.setAttribute('width', '0'); + aTab.maxWidth = 250; + aTab.minWidth = this.mTabBrowser.mTabContainer.mTabMinWidth; + aTab.setAttribute('flex', 100); + } if (this.getTreePref('compatibility.TMP')) aTab.removeAttribute('dir'); // Tab Mix Plus }