Specify reference node only with XPath
This commit is contained in:
parent
cdc3a181ac
commit
83a179495b
@ -88,7 +88,7 @@
|
|||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
this.parentNode.hidePopup();
|
this.parentNode.hidePopup();
|
||||||
}"
|
}"
|
||||||
multipletab-insertafter="tabContextMenu.querySelector("*[id^='context_reloadTab']")"/>
|
multipletab-insertafter="descendant::*[starts-with(@id, 'context_reloadTab')]"/>
|
||||||
<menuitem id="context-item-reloadDescendantTabs"
|
<menuitem id="context-item-reloadDescendantTabs"
|
||||||
label="&context.reloadDescendantTabs.label;"
|
label="&context.reloadDescendantTabs.label;"
|
||||||
accesskey="&context.reloadDescendantTabs.accesskey;"
|
accesskey="&context.reloadDescendantTabs.accesskey;"
|
||||||
@ -98,7 +98,7 @@
|
|||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
this.parentNode.hidePopup();
|
this.parentNode.hidePopup();
|
||||||
}"
|
}"
|
||||||
multipletab-insertafter="tabContextMenu.querySelector("*[id^='context-item-reloadTabSubtree']")"/>
|
multipletab-insertafter="descendant::*[starts-with(@id, 'context-item-reloadTabSubtree']"/>
|
||||||
|
|
||||||
<menuitem id="context-item-removeTabSubtree"
|
<menuitem id="context-item-removeTabSubtree"
|
||||||
label="&context.removeTabSubtree.label;"
|
label="&context.removeTabSubtree.label;"
|
||||||
@ -109,9 +109,7 @@
|
|||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
this.parentNode.hidePopup();
|
this.parentNode.hidePopup();
|
||||||
}"
|
}"
|
||||||
multipletab-insertbefore="TreeStyleTabUtils.evaluateXPath(
|
multipletab-insertbefore="descendant::*[starts-with(@id, 'multipletab-context-removeAll') | starts-with(@id, 'context_closeTab')][1] | child::xul:menuitem[last()])/preceding-sibling::xul:menuseparator[1]"/>
|
||||||
"(descendant::*[starts-with(@id, 'multipletab-context-removeAll') | starts-with(@id, 'context_closeTab')][1] | child::xul:menuitem[last()])/preceding-sibling::xul:menuseparator[1]"
|
|
||||||
, tabContextMenu, XPathResult.FIRST_ORDERED_NODE_TYPE).singleNodeValue"/>
|
|
||||||
<menuitem id="context-item-removeDescendantTabs"
|
<menuitem id="context-item-removeDescendantTabs"
|
||||||
label="&context.removeDescendantTabs.label;"
|
label="&context.removeDescendantTabs.label;"
|
||||||
accesskey="&context.removeDescendantTabs.accesskey;"
|
accesskey="&context.removeDescendantTabs.accesskey;"
|
||||||
@ -121,20 +119,18 @@
|
|||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
this.parentNode.hidePopup();
|
this.parentNode.hidePopup();
|
||||||
}"
|
}"
|
||||||
multipletab-insertafter="tabContextMenu.querySelector("*[id^='context-item-removeTabSubtree']")"/>
|
multipletab-insertafter="descendant::*[starts-with(@id, 'context-item-removeTabSubtree']"/>
|
||||||
<menuitem id="context-item-removeAllTabsButThisTree"
|
<menuitem id="context-item-removeAllTabsButThisTree"
|
||||||
label="&context.removeAllTabsBut.label;"
|
label="&context.removeAllTabsBut.label;"
|
||||||
accesskey="&context.removeAllTabsBut.accesskey;"
|
accesskey="&context.removeAllTabsBut.accesskey;"
|
||||||
oncommand="TreeStyleTabService.removeAllTabsBut(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);"
|
oncommand="TreeStyleTabService.removeAllTabsBut(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);"
|
||||||
multipletab-insertafter="tabContextMenu.querySelector("*[id^='context_closeOtherTabs']")"/>
|
multipletab-insertafter="descendant::*[starts-with(@id, 'context_closeOtherTabs']"/>
|
||||||
|
|
||||||
<menuitem id="context-item-bookmarkTabSubtree"
|
<menuitem id="context-item-bookmarkTabSubtree"
|
||||||
label="&context.bookmarkTabSubtree.label;"
|
label="&context.bookmarkTabSubtree.label;"
|
||||||
accesskey="&context.bookmarkTabSubtree.accesskey;"
|
accesskey="&context.bookmarkTabSubtree.accesskey;"
|
||||||
oncommand="TreeStyleTabBookmarksService.bookmarkTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);"
|
oncommand="TreeStyleTabBookmarksService.bookmarkTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);"
|
||||||
multipletab-insertafter="TreeStyleTabUtils.evaluateXPath(
|
multipletab-insertafter="descendant::*[starts-with(@id, 'context_bookmarkTab')][1] | descendant::*[@command='Browser:BookmarkAllTabs']/preceding-sibling[1]"/>
|
||||||
"descendant::*[starts-with(@id, 'context_bookmarkTab')][1] | descendant::*[@command='Browser:BookmarkAllTabs']/preceding-sibling[1]"
|
|
||||||
, tabContextMenu, XPathResult.FIRST_ORDERED_NODE_TYPE).singleNodeValue"/>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- simply appended items -->
|
<!-- simply appended items -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user