From dce660e49d178ae5be9159dafe0cb45df0646119 Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Fri, 29 Nov 2013 01:18:37 +0900 Subject: [PATCH] Show fullscreen window control (closebox, etc.) in the navigation bar when TST is activated. #613 --- content/treestyletab/windowHelper.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index 5b86203b..ae8e04bf 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -303,6 +303,13 @@ var TreeStyleTabWindowHelper = { '{ gBrowser.treeStyleTab.onBeforeFullScreenToggle(); ' ) ); + // for Firefox 28 (29) and later + eval('FullScreen.showXULChrome = '+ + FullScreen.showXULChrome.toSource().replace( + 'var ctlsOnTabbar = window.toolbar.visible;', + 'var ctlsOnTabbar = window.toolbar.visible && gBrowser.treeStyleTab.position == "top" && gBrowser.treeStyleTab.fixed;' + ) + ); if ('PrintUtils' in window) { eval('PrintUtils.printPreview = '+PrintUtils.printPreview.toSource().replace(