Bug 1354078 - update panel/toolbar context menus to move items to the right place, with tests, r=bgrins

MozReview-Commit-ID: DpQdvE25iqU
This commit is contained in:
Gijs Kruitbosch
2017-05-19 17:27:11 +01:00
parent 65df95abe8
commit ce62942c89
5 changed files with 473 additions and 37 deletions

View File

@@ -776,7 +776,9 @@ CustomizeMode.prototype = {
if (aNode.localName == "toolbarpaletteitem" && aNode.firstChild) {
aNode = aNode.firstChild;
}
CustomizableUI.addWidgetToArea(aNode.id, CustomizableUI.AREA_PANEL);
let panel = gPhotonStructure ? CustomizableUI.AREA_FIXED_OVERFLOW_PANEL
: CustomizableUI.AREA_PANEL;
CustomizableUI.addWidgetToArea(aNode.id, panel);
if (!this._customizing) {
CustomizableUI.dispatchToolboxEvent("customizationchange");
}