MozillaZine

Where is the button "history-panelmenu" defined?

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

Post Posted June 12th, 2014, 12:51 pm

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: 439
Joined: July 5th, 2011, 6:32 am

Post Posted June 13th, 2014, 1:08 pm

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

Return to Mozilla Development


Who is online

Users browsing this forum: No registered users and 1 guest