diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js
index 60de9b5da94..5beac53e6d5 100644
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -4257,10 +4257,10 @@ function onViewToolbarsPopupShowing(aEvent, aInsertPoint) {
}
- let addToPanel = popup.querySelector(".customize-context-addToPanel");
+ let moveToPanel = popup.querySelector(".customize-context-moveToPanel");
let removeFromToolbar = popup.querySelector(".customize-context-removeFromToolbar");
- // View -> Toolbars menu doesn't have the addToPanel or removeFromToolbar items.
- if (!addToPanel || !removeFromToolbar) {
+ // View -> Toolbars menu doesn't have the moveToPanel or removeFromToolbar items.
+ if (!moveToPanel || !removeFromToolbar) {
return;
}
@@ -4287,10 +4287,10 @@ function onViewToolbarsPopupShowing(aEvent, aInsertPoint) {
let movable = toolbarItem && toolbarItem.parentNode &&
CustomizableUI.isWidgetRemovable(toolbarItem);
if (movable) {
- addToPanel.removeAttribute("disabled");
+ moveToPanel.removeAttribute("disabled");
removeFromToolbar.removeAttribute("disabled");
} else {
- addToPanel.setAttribute("disabled", true);
+ moveToPanel.setAttribute("disabled", true);
removeFromToolbar.setAttribute("disabled", true);
}
}
diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul
index 4dab60e2f0b..3d8376fe13c 100644
--- a/browser/base/content/browser.xul
+++ b/browser/base/content/browser.xul
@@ -246,8 +246,8 @@
onpopupshowing="onViewToolbarsPopupShowing(event, document.getElementById('viewToolbarsMenuSeparator'));">
+ label="&customizeMenu.moveToPanel.label;"
+ class="customize-context-moveToPanel"/>