Use platform specific preference correctly

This commit is contained in:
YUKI Hiroshi 2016-02-18 11:35:21 +09:00
parent 718475c010
commit 7ffe13c8b4

View File

@ -605,7 +605,9 @@ var TreeStyleTabUtils = {
var rulesToSizeScrollbarContents = '';
{
let OS = Services.appinfo.OS;
let shouldResize = this.getTreePref('tabbar.narrowScrollbar.resize.'+OS) || this.getTreePref('tabbar.narrowScrollbar.resize.default');
let shouldResize = this.getTreePref('tabbar.narrowScrollbar.resize.'+OS);
if (shouldResize === null)
shouldResize = this.getTreePref('tabbar.narrowScrollbar.resize.default');
let scrollbarSize = 0;
if (!shouldResize) {
let scrollbox = aTabBrowser.tabContainer.mTabstrip._scrollbox;