From d54fa2910debb64bcdbdccb0e8c7bd90976f4bf9 Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Wed, 30 Mar 2011 10:45:49 +0900 Subject: [PATCH] On Firefox 4, failed to drop tabs on toolbar items inserted into the tab bar. (tree was broken, etc.) --- content/treestyletab/res/tabsDragUtils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/res/tabsDragUtils.js b/content/treestyletab/res/tabsDragUtils.js index 5f993f7d..fd06ee22 100644 --- a/content/treestyletab/res/tabsDragUtils.js +++ b/content/treestyletab/res/tabsDragUtils.js @@ -13,7 +13,7 @@ http://github.com/piroor/fxaddonlibs/blob/master/tabsDragUtils.js */ (function() { - const currentRevision = 12; + const currentRevision = 13; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; @@ -198,7 +198,8 @@ var b = aTabBrowserChild.ownerDocument.evaluate( 'ancestor-or-self::*[local-name()="tabbrowser"] | '+ - 'ancestor-or-self::*[local-name()="tabs" and @tabbrowser]', + 'ancestor-or-self::*[local-name()="tabs" and @tabbrowser] |'+ + 'ancestor::*[local-name()="toolbar"]/descendant::*[local-name()="tabs" and @tabbrowser]', aTabBrowserChild, null, XPathResult.FIRST_ORDERED_NODE_TYPE,