third_party/js/mozmill/shared-modules/search.js
function searchBar_openEngineManager(handler)
  {
    this.enginesDropDownOpen = true;
    var engineManager = this.getElement({type: "engine_manager"});

    // Setup the modal dialog handler
    md = new modalDialog.modalDialog(this._controller.window);
    md.start(handler);

    // XXX: Bug 555347 - Process any outstanding events before clicking the entry
    this._controller.sleep(0);
    this._controller.click(engineManager);
    md.waitForDialog();

    this._controller.assert(function () {
      return this.enginesDropDownOpen == false;
    }, "The search engine drop down menu has been closed", this);
  }
function searchBar_openEngineManager(handler)
  {
    this.enginesDropDownOpen = true;
    var engineManager = this.getElement({type: "engine_manager"});

    // Setup the modal dialog handler
    md = new modalDialog.modalDialog(this._controller.window);
    md.start(handler);

    // XXX: Bug 555347 - Process any outstanding events before clicking the entry
    this._controller.sleep(0);
    this._controller.click(engineManager);
    md.waitForDialog();

    this._controller.assert(function () {
      return this.enginesDropDownOpen == false;
    }, "The search engine drop down menu has been closed", this);
  }
function searchBar_openEngineManager ( handler ) { this . enginesDropDownOpen = true ; var engineManager = this . getElement ( { type : "engine_manager" } ) ; // Setup the modal dialog handler md = new modalDialog . modalDialog ( this . _controller . window ) ; md . start ( handler ) ; // XXX: Bug 555347 - Process any outstanding events before clicking the entry this . _controller . sleep ( 0 ) ; this . _controller . click ( engineManager ) ; md . waitForDialog ( ) ; this . _controller . assert ( function ( ) { return this . enginesDropDownOpen == false ; } , "The search engine drop down menu has been closed" , this ) ; }
Open the Engine Manager

@param {function} handler
Callback function for Engine Manager
Open the Engine Manager