diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 43af50e5be3..517d127976d 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -4413,7 +4413,6 @@ var FullScreen = { // and in tabs-on-bottom mode, move them back to the navigation toolbar. // When there is a chance the tab bar may be collapsed, put window // controls on nav bar. - var fullscreenflex = document.getElementById("fullscreenflex"); var fullscreenctls = document.getElementById("window-controls"); var navbar = document.getElementById("nav-bar"); var ctlsOnTabbar = window.toolbar.visible && @@ -4421,14 +4420,12 @@ var FullScreen = { (TabsOnTop.enabled && !gPrefService.getBoolPref("browser.tabs.autoHide"))); if (fullscreenctls.parentNode == navbar && ctlsOnTabbar) { + fullscreenctls.removeAttribute("flex"); document.getElementById("TabsToolbar").appendChild(fullscreenctls); - // we don't need this space in tabs-on-top mode, so prevent it from - // being shown - fullscreenflex.removeAttribute("fullscreencontrol"); } else if (fullscreenctls.parentNode.id == "TabsToolbar" && !ctlsOnTabbar) { + fullscreenctls.setAttribute("flex", "1"); navbar.appendChild(fullscreenctls); - fullscreenflex.setAttribute("fullscreencontrol", "true"); } var controls = document.getElementsByAttribute("fullscreencontrol", "true"); diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index a6549cfc3d8..a0c13684d48 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -475,7 +475,7 @@ toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;" fullscreentoolbar="true" mode="icons" customizable="true" iconsize="large" - defaultset="unified-back-forward-button,urlbar-container,reload-button,stop-button,search-container,home-button,bookmarks-menu-button-container,fullscreenflex,window-controls" + defaultset="unified-back-forward-button,urlbar-container,reload-button,stop-button,search-container,home-button,bookmarks-menu-button-container,window-controls" context="toolbar-context-menu"> -