wrong count of restoring tabs if the BarTab is installed. (fix for https://github.com/piroor/treestyletab/issues#issue/40 )

This commit is contained in:
SHIMODA Hiroshi 2011-02-07 10:10:47 +09:00
parent f9d9b414f1
commit 8bd60b4ef8

View File

@ -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;
},