From 7de28e24f31a2b3c336fc4df5a8b75a7d516209f Mon Sep 17 00:00:00 2001 From: Mike Conley Date: Thu, 1 Aug 2013 14:46:23 -0400 Subject: [PATCH] Bug 899576 - Fast-path the default case for CustomizableUI.buildArea, and preset node attributes in browser.xul. r=Gijs. --- browser/base/content/browser.xul | 25 ++++++++++++++++++- .../customizableui/src/CustomizableUI.jsm | 9 ------- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index 92682f494c8..07eb85a666b 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -434,7 +434,8 @@ accesskey="&menubarCmd.accesskey;" #endif context="toolbar-context-menu"> - + # The entire main menubar is placed into browser-menubar.inc, so that it can be shared by # hiddenWindow.xul. #include browser-menubar.inc @@ -464,6 +465,7 @@ flex="1" setfocus="false" tooltip="tabbrowser-tab-tooltip" + customizableui-areatype="toolbar" stopwatchid="FX_TAB_CLICK_MS"> @@ -478,6 +480,7 @@ ondragover="newTabButtonObserver.onDragOver(event)" ondragenter="newTabButtonObserver.onDragOver(event)" ondragexit="newTabButtonObserver.onDragExit(event)" + customizableui-areatype="toolbar" removable="true"/> @@ -502,6 +506,7 @@ class="close-button tabs-closebutton close-icon" command="cmd_close" label="&closeTab.label;" + customizableui-areatype="toolbar" tooltiptext="&closeTab.label;"/> #ifdef CAN_DRAW_IN_TITLEBAR @@ -531,11 +536,14 @@ customizationtarget="nav-bar-customizationtarget" overflowbutton="nav-bar-overflow-button" overflowtarget="widget-overflow-list" + flex="501" context="toolbar-context-menu"> @@ -655,6 +665,8 @@ orient="horizontal" label="&webrtcIndicatorButton.label;" tooltiptext="&webrtcIndicatorButton.tooltip;" + customizableui-areatype="toolbar" + customizableui-anchorid="nav-bar-overflow-button" nooverflow="true"> @@ -778,6 +796,8 @@ nooverflow="true" label="&sharePageCmd.label;" tooltiptext="&sharePageCmd.label;" + customizableui-areatype="toolbar" + customizableui-anchorid="nav-bar-overflow-button" command="Social:SharePage"/>