Where is the button "history-panelmenu" defined?

Discuss building things with or for the Mozilla Platform.
Post Reply
Yaron10
Posts: 472
Joined: July 5th, 2011, 6:32 am

Where is the button "history-panelmenu" defined?

Post by Yaron10 »

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.
Yaron10
Posts: 472
Joined: July 5th, 2011, 6:32 am

Re: Where is the button "history-panelmenu" defined?

Post by Yaron10 »

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
Post Reply