Show fullscreen window control (closebox, etc.) in the navigation bar when TST is activated. #613

This commit is contained in:
Piro / YUKI Hiroshi 2013-11-29 01:18:37 +09:00
parent 8a4a8a996f
commit dce660e49d

View File

@ -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(