I couldn't find it in "browser.xul".
I'd like to add a right-click function to the button.
I can do that as follows:
var historyUndo = document.getElementById("history-panelmenu");
historyUndo.addEventListener("click", function(event) { if(event.button != 0) undoCloseTab(); }, false);
historyUndo.setAttribute("context", "");
But I'd rather change the xul file.
Thank you.
Where is the button "history-panelmenu" defined?
-
- Posts: 472
- Joined: July 5th, 2011, 6:32 am
-
- Posts: 472
- Joined: July 5th, 2011, 6:32 am
Re: Where is the button "history-panelmenu" defined?
See:
resource:///modules/CustomizableUI.jsm
resource:///modules/CustomizableWidgets.jsm
http://mxr.mozilla.org/mozilla-release/ ... idgets.jsm
***
Thanks to cor-el.
https://support.mozilla.org/en-US/quest ... =&r=0&as=s
resource:///modules/CustomizableUI.jsm
resource:///modules/CustomizableWidgets.jsm
http://mxr.mozilla.org/mozilla-release/ ... idgets.jsm
***
Thanks to cor-el.
https://support.mozilla.org/en-US/quest ... =&r=0&as=s