Add secret preference to activate Tabs in Titlebar feature without any other addon.

This will make it possible to customize appearance around the navigation bar and the title bar by users.
This commit is contained in:
YUKI Hiroshi 2016-08-26 17:03:07 +09:00
parent a22c9c5e15
commit 4b2fae85b4
2 changed files with 7 additions and 0 deletions

View File

@ -671,6 +671,12 @@ pref("extensions.treestyletab.pinnedTab.faviconized", true);
pref("extensions.treestyletab.groupTab.columnize", true);
pref("extensions.treestyletab.groupTab.columnize.width", "20em");
/**
* If true, TST automatically disables Tabs in Titlebar appearance to avoid
* broken appearance problems.
*/
pref("extensions.treestyletab.blockTabsInTitlebar", true);
/**
* Compatibility hack flags for other addons. They can be disabled by each
* addon, when the addon become working with TST without dirty hacks.

View File

@ -1286,6 +1286,7 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
if (TabsInTitlebar) {
let menubar = this.window.document.getElementById('toolbar-menubar');
let allowed = (
!utils.getTreePref('blockTabsInTitlebar') ||
(isTopTabbar && this.browser.treeStyleTab.fixed) ||
(!this.isMac && menubar.getAttribute('autohide') !== 'true')
);