docs: function addonsManager_open(aSpec) {
      var spec = aSpec || { };
      var type = (spec.type == undefined) ? "menu" : spec.type;
      var waitFor = (spec.waitFor == undefined) ? true : spec.waitFor;
  
      switch (type) {
        case "menu":
          var menuItem = new elementslib.Elem(this._controller.
                                              menus["tools-menu"].menu_openAddons);
          this._controller.click(menuItem);
          break;
        case "shortcut":
          var cmdKey = utils.getEntity(this.dtds, "addons.commandkey");
          this._controller.keypress(null, cmdKey, {accelKey: true, shiftKey: true});
          break;
        default:
          throw new Error(arguments.callee.name + ": Unknown event type - " +
                          event.type);
      }
  
      return waitFor ? this.waitForOpened() : null;
    }