Bug 985956 - Uplift Add-on SDK to Firefox

This commit is contained in:
Erik Vold
2014-03-20 08:07:16 -07:00
parent dcc4b17b8c
commit 1553f9245e
21 changed files with 151 additions and 439 deletions

View File

@@ -138,6 +138,8 @@ function display(panel, options, anchor) {
// menu panel.
// In such cases clicking this widget will hide the overflow/menu panel,
// and the widget's panel will show instead.
// If `CustomizableUI` is not available, it means the anchor is not in a
// chrome browser window, and therefore there is no need for this check.
if (CustomizableUI) {
let node = anchor;
({anchor}) = CustomizableUI.getWidget(anchor.id).forWindow(window);