From 8bd60b4ef8ec0ec675345a29766e9966509617ff Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Mon, 7 Feb 2011 10:10:47 +0900 Subject: [PATCH] wrong count of restoring tabs if the BarTab is installed. (fix for https://github.com/piroor/treestyletab/issues#issue/40 ) --- content/treestyletab/treestyletab.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index e55cc3d5..493535ed 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -1793,7 +1793,11 @@ var TreeStyleTabService = { var owner = aTab.linkedBrowser; var data = owner.__SS_data || // Firefox 3.6- owner.parentNode.__SS_data; // -Firefox 3.5 - return data && data._tabStillLoading; + return ( + data && + data._tabStillLoading && + !aTab.hasAttribute('ontap') // if BarTab is installed, to-be-restored tab possibly has the value unexpectedly. + ); }).length; },