diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-02-19 20:04:11 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-19 20:04:11 +0100 |
commit | da8f20a3b05387aaa1c7c81543f1aae6dd1ca99d (patch) | |
tree | c78b4fde0bde40a35c618fdb5de2b6eaa0030df6 /browser/components | |
parent | 38ec1c796d64fcf9d73a897685cadbf0ad74fed0 (diff) | |
download | UXP-da8f20a3b05387aaa1c7c81543f1aae6dd1ca99d.tar UXP-da8f20a3b05387aaa1c7c81543f1aae6dd1ca99d.tar.gz UXP-da8f20a3b05387aaa1c7c81543f1aae6dd1ca99d.tar.lz UXP-da8f20a3b05387aaa1c7c81543f1aae6dd1ca99d.tar.xz UXP-da8f20a3b05387aaa1c7c81543f1aae6dd1ca99d.zip |
Remove some obsolete front-end code in Basilisk.
Diffstat (limited to 'browser/components')
-rw-r--r-- | browser/components/customizableui/CustomizableUI.jsm | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/browser/components/customizableui/CustomizableUI.jsm b/browser/components/customizableui/CustomizableUI.jsm index 86ff2708b..01389108d 100644 --- a/browser/components/customizableui/CustomizableUI.jsm +++ b/browser/components/customizableui/CustomizableUI.jsm @@ -262,24 +262,14 @@ var CustomizableUIInternal = { defaultCollapsed: false, }, true); - if (AppConstants.platform != "macosx") { + if (AppConstants.MENUBAR_CAN_AUTOHIDE) { this.registerArea(CustomizableUI.AREA_MENUBAR, { legacy: true, type: CustomizableUI.TYPE_TOOLBAR, defaultPlacements: [ "menubar-items", ], - get defaultCollapsed() { - if (AppConstants.MENUBAR_CAN_AUTOHIDE) { - if (AppConstants.platform == "linux") { - return true; - } - // This is duplicated logic from /browser/base/jar.mn - // for win6BrowserOverlay.xul. - return AppConstants.isPlatformAndVersionAtLeast("win", 6); - } - return false; - } + defaultCollapsed: true, }, true); } |