From 5369230cb7c26dc45908224b7a0a86b08fe4e978 Mon Sep 17 00:00:00 2001 From: Sam Foster Date: Mon, 30 Apr 2018 09:56:27 -0700 Subject: [PATCH] Bug 1457389 - Check if extension is in the overflow menu when setting fixedWidth on the popup. r=rpl MozReview-Commit-ID: 3NqnOMpu18M --HG-- extra : rebase_source : 2e77701c8e9cf94983b97b4a80d170dd86da0424 --- browser/components/extensions/parent/ext-browserAction.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/components/extensions/parent/ext-browserAction.js b/browser/components/extensions/parent/ext-browserAction.js index 2ce8d1063230..8d5c827331bc 100644 --- a/browser/components/extensions/parent/ext-browserAction.js +++ b/browser/components/extensions/parent/ext-browserAction.js @@ -396,7 +396,9 @@ this.browserAction = class extends ExtensionAPI { pendingPopup.destroy(); } - let fixedWidth = this.widget.areaType == CustomizableUI.TYPE_MENU_PANEL; + let fixedWidth = + this.widget.areaType == CustomizableUI.TYPE_MENU_PANEL || + this.widget.forWindow(window).overflowed; return new ViewPopup(this.extension, window, popupURL, this.browserStyle, fixedWidth, blockParser); }