From e477eadacbf651d078bf7bdcf1dd1a5a78c746ca Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 30 Apr 2010 04:00:09 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E4=B8=8A?= =?UTF-8?q?=E3=81=AE=E3=83=84=E3=83=BC=E3=83=AB=E3=83=90=E3=83=BC=E3=83=9C?= =?UTF-8?q?=E3=82=BF=E3=83=B3=E3=81=AE=E3=83=89=E3=83=A9=E3=83=83=E3=82=B0?= =?UTF-8?q?=E3=81=AB=E3=82=88=E3=82=8B=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC?= =?UTF-8?q?=E3=81=AE=E7=A7=BB=E5=8B=95=E3=81=8C=E3=81=A7=E3=81=8D=E3=81=AA?= =?UTF-8?q?=E3=81=8F=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6626 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- modules/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/utils.js b/modules/utils.js index f627a36d..329acdcb 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -802,7 +802,9 @@ var TreeStyleTabUtils = { getTabbarFromChild : function TSTUtils_getTabbarFromChild(aNode) { return this.evaluateXPath( - 'ancestor-or-self::*[contains(concat(" ", normalize-space(@class), " "), " tabbrowser-strip ") or (local-name()="tabs" and @tabbrowser)]', + 'ancestor-or-self::*[contains(concat(" ", normalize-space(@class), " "), " tabbrowser-strip ")] | '+ + 'ancestor-or-self::xul:tabs[@tabbrowser] | ' + + 'ancestor-or-self::xul:toolbar[@id="TabsToolbar"]/child::xul:tabs[@tabbrowser]', aNode, Ci.nsIDOMXPathResult.FIRST_ORDERED_NODE_TYPE ).singleNodeValue;