diff options
Diffstat (limited to 'base/content/browser.js')
-rwxr-xr-x | base/content/browser.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/content/browser.js b/base/content/browser.js index 22838d1..352f5e6 100755 --- a/base/content/browser.js +++ b/base/content/browser.js @@ -4708,6 +4708,10 @@ function getTogglableToolbars() { let toolbarNodes = Array.slice(gNavToolbox.childNodes); toolbarNodes = toolbarNodes.concat(gNavToolbox.externalToolbars); toolbarNodes = toolbarNodes.filter(node => node.getAttribute("toolbarname")); +#ifdef MOZ_WIDGET_GTK + if (document.documentElement.getAttribute("shellshowingmenubar") == "true") + toolbarNodes = toolbarNodes.filter(node => node.id != "toolbar-menubar"); +#endif return toolbarNodes; } |