From 95d36e08cf4ab1aadd66dbd5c6ee469df29159ae Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 21 Jun 2016 15:39:43 +0900 Subject: [PATCH] Specify reference node only with XPath --- content/treestyletab/treestyletab.xul | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/content/treestyletab/treestyletab.xul b/content/treestyletab/treestyletab.xul index bbfe4d07..574b6731 100644 --- a/content/treestyletab/treestyletab.xul +++ b/content/treestyletab/treestyletab.xul @@ -88,7 +88,7 @@ event.stopPropagation(); this.parentNode.hidePopup(); }" - multipletab-insertafter="tabContextMenu.querySelector("*[id^='context_reloadTab']")"/> + multipletab-insertafter="descendant::*[starts-with(@id, 'context_reloadTab')]"/> + multipletab-insertafter="descendant::*[starts-with(@id, 'context-item-reloadTabSubtree']"/> + multipletab-insertbefore="descendant::*[starts-with(@id, 'multipletab-context-removeAll') | starts-with(@id, 'context_closeTab')][1] | child::xul:menuitem[last()])/preceding-sibling::xul:menuseparator[1]"/> + multipletab-insertafter="descendant::*[starts-with(@id, 'context-item-removeTabSubtree']"/> + multipletab-insertafter="descendant::*[starts-with(@id, 'context_closeOtherTabs']"/> + multipletab-insertafter="descendant::*[starts-with(@id, 'context_bookmarkTab')][1] | descendant::*[@command='Browser:BookmarkAllTabs']/preceding-sibling[1]"/>