diff --git a/content/treestyletab/treestyletab.xul b/content/treestyletab/treestyletab.xul index 83a9b7dc..8d936727 100644 --- a/content/treestyletab/treestyletab.xul +++ b/content/treestyletab/treestyletab.xul @@ -65,9 +65,7 @@ event.stopPropagation(); this.parentNode.hidePopup(); }" - multipletab-insertafter="TreeStyleTabService.evaluateXPath( - "descendant::*[starts-with(@id, 'context_reloadTab')][1]" - , tabContextMenu, XPathResult.FIRST_ORDERED_NODE_TYPE).singleNodeValue"/> + multipletab-insertafter="tabContextMenu.querySelector("*[id^='context_reloadTab']")"/> + multipletab-insertafter="tabContextMenu.querySelector("*[id^='context-item-reloadTabSubtree']")"/> + multipletab-insertafter="tabContextMenu.querySelector("*[id^='context-item-removeTabSubtree']")"/> + multipletab-insertafter="tabContextMenu.querySelector("*[id^='context_closeOtherTabs']")"/>