Bug 838855 - Fix "ele is null" exception being thrown on OSX on titlebar update. r=dao.

This commit is contained in:
Mike Conley 2013-02-08 11:42:06 -05:00
parent 1000e88b66
commit 48b835bf8a
2 changed files with 7 additions and 1 deletions

View File

@ -405,7 +405,11 @@ pref("browser.tabs.loadBookmarksInBackground", false);
pref("browser.tabs.tabClipWidth", 140);
pref("browser.tabs.animate", true);
pref("browser.tabs.onTop", true);
#ifdef XP_WIN
pref("browser.tabs.drawInTitlebar", true);
#else
pref("browser.tabs.drawInTitlebar", false);
#endif
// Where to show tab close buttons:
// 0 on active tab only

View File

@ -5039,9 +5039,11 @@ var TabsInTitlebar = {
let tabsToolbar = $("TabsToolbar");
#ifdef MENUBAR_CAN_AUTOHIDE
let appmenuButtonBox = $("appmenu-button-container");
let captionButtonsBox = $("titlebar-buttonbox");
this._sizePlaceholder("appmenu-button", rect(appmenuButtonBox).width);
#endif
let captionButtonsBox = $("titlebar-buttonbox");
this._sizePlaceholder("caption-buttons", rect(captionButtonsBox).width);
let tabsToolbarRect = rect(tabsToolbar);