I am working on a Firefox extension in which I have made various changes in browser.xul to customize Firefox's UI. By default Firefox has its menu-bar disabled/invisible. I want it to always display menu-bar toolbar. FYI, I have disabled right-click on toolbar which usually shows a context menu where-in one can make menu-bar visible or gone.
Is there any way by which one can make this setting?
I tried this and its working fine,
I have edited browser.js
and inside gBrowserInit
functions onLoad
function I have added the following code snippet after the whole UI is done loading.
let toolbar = window.document.getElementById("toolbar-menubar");
if (toolbar) {
window.setToolbarVisibility(toolbar, true, true);
}