3.7a4pre対応準備:tabbrowserの中にないtabを考慮

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6400 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-03-23 15:12:43 +00:00
parent cc3792c6e0
commit fb7ec6225a

View File

@ -671,7 +671,7 @@ var TreeStyleTabUtils = {
getTabFromChild : function TSTUtils_getTabFromChild(aTab) getTabFromChild : function TSTUtils_getTabFromChild(aTab)
{ {
return this.evaluateXPath( return this.evaluateXPath(
'ancestor-or-self::xul:tab[ancestor::xul:tabbrowser]', 'ancestor-or-self::xul:tab',
aTab, aTab,
Ci.nsIDOMXPathResult.FIRST_ORDERED_NODE_TYPE Ci.nsIDOMXPathResult.FIRST_ORDERED_NODE_TYPE
).singleNodeValue; ).singleNodeValue;