Bug 941990 - The customization context menus don't appear on buttons in the menu panel in customization mode if the panel is not opened prior to entering customization mode. r=Gijs

This commit is contained in:
Jared Wein
2013-11-22 16:15:47 -05:00
parent b266314637
commit fb7ebb148e
4 changed files with 77 additions and 23 deletions

View File

@@ -122,7 +122,6 @@ const PanelUI = {
}
this.ensureReady().then(() => {
this.panel.hidden = false;
let editControlPlacement = CustomizableUI.getPlacementOfWidget("edit-controls");
if (editControlPlacement && editControlPlacement.area == CustomizableUI.AREA_PANEL) {
updateEditUIVisibility();
@@ -224,6 +223,7 @@ const PanelUI = {
CustomizableUI.registerMenuPanel(this.contents);
this.endBatchUpdate();
}
this.panel.hidden = false;
}.bind(this)).then(null, Cu.reportError);
return this._readyPromise;