diff --git a/browser/base/content/browser-addons.js b/browser/base/content/browser-addons.js
index f1ff5321d0a5..2159ea1a4e23 100644
--- a/browser/base/content/browser-addons.js
+++ b/browser/base/content/browser-addons.js
@@ -1543,6 +1543,13 @@ var gUnifiedExtensions = {
);
template.replaceWith(template.content);
this._panel = document.getElementById("unified-extensions-panel");
+ let customizationArea = this._panel.querySelector(
+ "#unified-extensions-area"
+ );
+ CustomizableUI.registerPanelNode(
+ customizationArea,
+ CustomizableUI.AREA_ADDONS
+ );
CustomizableUI.addPanelCloseListeners(this._panel);
}
return this._panel;
diff --git a/browser/components/customizableui/CustomizableUI.jsm b/browser/components/customizableui/CustomizableUI.jsm
index 33dc638e8659..c5e98d06e7f1 100644
--- a/browser/components/customizableui/CustomizableUI.jsm
+++ b/browser/components/customizableui/CustomizableUI.jsm
@@ -243,6 +243,16 @@ var CustomizableUIInternal = {
true
);
+ this.registerArea(
+ CustomizableUI.AREA_ADDONS,
+ {
+ type: CustomizableUI.TYPE_PANEL,
+ defaultPlacements: [],
+ anchor: "unified-extensions-button",
+ },
+ false
+ );
+
let navbarPlacements = [
"back-button",
"forward-button",
@@ -321,6 +331,7 @@ var CustomizableUIInternal = {
return new Set([
...this._builtinToolbars,
CustomizableUI.AREA_FIXED_OVERFLOW_PANEL,
+ CustomizableUI.AREA_ADDONS,
]);
},
@@ -3602,7 +3613,10 @@ var CustomizableUI = {
* Constant reference to the ID of the non-dymanic (fixed) list in the overflow panel.
*/
AREA_FIXED_OVERFLOW_PANEL: "widget-overflow-fixed-list",
-
+ /**
+ * Constant reference to the ID of the addons area.
+ */
+ AREA_ADDONS: "unified-extensions-area",
/**
* Constant indicating the area is a panel.
*/
diff --git a/browser/components/customizableui/content/panelUI.inc.xhtml b/browser/components/customizableui/content/panelUI.inc.xhtml
index cfdd74cc8262..5aebbedfbc44 100644
--- a/browser/components/customizableui/content/panelUI.inc.xhtml
+++ b/browser/components/customizableui/content/panelUI.inc.xhtml
@@ -85,6 +85,10 @@
+
+
+
+