Loading browser/base/content/browser.js +2 −5 Original line number Diff line number Diff line Loading @@ -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 && Loading @@ -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"); Loading browser/base/content/browser.xul +2 −3 Original line number Diff line number Diff line Loading @@ -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"> <toolbaritem id="unified-back-forward-button" class="chromeclass-toolbar-additional" Loading Loading @@ -697,8 +697,7 @@ </toolbarbutton> </toolbaritem> <hbox id="fullscreenflex" flex="1" hidden="true" fullscreencontrol="true"/> <hbox id="window-controls" hidden="true" fullscreencontrol="true"> <hbox id="window-controls" hidden="true" fullscreencontrol="true" pack="end"> <toolbarbutton id="minimize-button" tooltiptext="&fullScreenMinimize.tooltip;" oncommand="window.minimize();"/> Loading browser/components/nsBrowserGlue.js +1 −7 Original line number Diff line number Diff line Loading @@ -1243,13 +1243,7 @@ BrowserGlue.prototype = { // Need to migrate only if toolbar is customized and the element is not found. if (currentset && currentset.indexOf("bookmarks-menu-button-container") == -1) { if (currentset.indexOf("fullscreenflex") != -1) { currentset = currentset.replace(/(^|,)fullscreenflex($|,)/, "$1bookmarks-menu-button-container,fullscreenflex$2") } else { currentset += ",bookmarks-menu-button-container"; } this._setPersist(toolbarResource, currentsetResource, currentset); } } Loading browser/themes/winstripe/browser.css +1 −1 Original line number Diff line number Diff line Loading @@ -1148,7 +1148,7 @@ toolbar[mode=full] .toolbarbutton-1 > .toolbarbutton-menubutton-button { /* ::::: fullscreen window controls ::::: */ #TabsToolbar > #window-controls { #window-controls { -moz-margin-start: 4px; } Loading Loading
browser/base/content/browser.js +2 −5 Original line number Diff line number Diff line Loading @@ -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 && Loading @@ -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"); Loading
browser/base/content/browser.xul +2 −3 Original line number Diff line number Diff line Loading @@ -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"> <toolbaritem id="unified-back-forward-button" class="chromeclass-toolbar-additional" Loading Loading @@ -697,8 +697,7 @@ </toolbarbutton> </toolbaritem> <hbox id="fullscreenflex" flex="1" hidden="true" fullscreencontrol="true"/> <hbox id="window-controls" hidden="true" fullscreencontrol="true"> <hbox id="window-controls" hidden="true" fullscreencontrol="true" pack="end"> <toolbarbutton id="minimize-button" tooltiptext="&fullScreenMinimize.tooltip;" oncommand="window.minimize();"/> Loading
browser/components/nsBrowserGlue.js +1 −7 Original line number Diff line number Diff line Loading @@ -1243,13 +1243,7 @@ BrowserGlue.prototype = { // Need to migrate only if toolbar is customized and the element is not found. if (currentset && currentset.indexOf("bookmarks-menu-button-container") == -1) { if (currentset.indexOf("fullscreenflex") != -1) { currentset = currentset.replace(/(^|,)fullscreenflex($|,)/, "$1bookmarks-menu-button-container,fullscreenflex$2") } else { currentset += ",bookmarks-menu-button-container"; } this._setPersist(toolbarResource, currentsetResource, currentset); } } Loading
browser/themes/winstripe/browser.css +1 −1 Original line number Diff line number Diff line Loading @@ -1148,7 +1148,7 @@ toolbar[mode=full] .toolbarbutton-1 > .toolbarbutton-menubutton-button { /* ::::: fullscreen window controls ::::: */ #TabsToolbar > #window-controls { #window-controls { -moz-margin-start: 4px; } Loading