Bug 1380274 - add an anchor to the definition of the overflow panel area, r?jaws draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 27 Jul 2017 14:16:08 +0100
changeset 616730 6b138904dc897e07b6819f6d2f955376a4af31a7
parent 615779 e8400551c2e39f24c75a009ebed496c7acd7bf47
child 639587 210afdcbe29c43671140a7c326e1983fdd4c705d
push id70805
push usergijskruitbosch@gmail.com
push dateThu, 27 Jul 2017 13:29:31 +0000
reviewersjaws
bugs1380274
milestone56.0a1
Bug 1380274 - add an anchor to the definition of the overflow panel area, r?jaws MozReview-Commit-ID: EezQr2JP1JH
browser/components/customizableui/CustomizableUI.jsm
--- a/browser/components/customizableui/CustomizableUI.jsm
+++ b/browser/components/customizableui/CustomizableUI.jsm
@@ -325,16 +325,17 @@ var CustomizableUIInternal = {
 
     if (gPhotonStructure) {
       if (gAreas.has(CustomizableUI.AREA_PANEL)) {
         this.unregisterArea(CustomizableUI.AREA_PANEL, true);
       }
       this.registerArea(CustomizableUI.AREA_FIXED_OVERFLOW_PANEL, {
         type: CustomizableUI.TYPE_MENU_PANEL,
         defaultPlacements: [],
+        anchor: "nav-bar-overflow-button",
       }, true);
     } else {
       if (gAreas.has(CustomizableUI.AREA_FIXED_OVERFLOW_PANEL)) {
         this.unregisterArea(CustomizableUI.AREA_FIXED_OVERFLOW_PANEL, true);
       }
       // In tests we destroy some widgets. Those should be removed from the
       // default placements when re-registering the panel.
       let placementsToUse = Array.from(gDefaultPanelPlacements);