third_party/js/mozmill/shared-modules/modal-dialog.js
function modalDialog_start(aCallback) {
    if (!aCallback)
      throw new Error(arguments.callee.name + ": Callback not specified.");

    this._observer = new mdObserver(this._window, aCallback);

    this._timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
    this._timer.init(this._observer, DELAY_CHECK, Ci.nsITimer.TYPE_ONE_SHOT);
  }
function modalDialog_start(aCallback) {
    if (!aCallback)
      throw new Error(arguments.callee.name + ": Callback not specified.");

    this._observer = new mdObserver(this._window, aCallback);

    this._timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
    this._timer.init(this._observer, DELAY_CHECK, Ci.nsITimer.TYPE_ONE_SHOT);
  }
function modalDialog_start ( aCallback ) { if ( ! aCallback ) throw new Error ( arguments . callee . name + ": Callback not specified." ) ; this . _observer = new mdObserver ( this . _window , aCallback ) ; this . _timer = Cc [ "@mozilla.org/timer;1" ] . createInstance ( Ci . nsITimer ) ; this . _timer . init ( this . _observer , DELAY_CHECK , Ci . nsITimer . TYPE_ONE_SHOT ) ; }
Start timer to wait for the modal dialog.

@param {function} aCallback
The callback handler to use to interact with the modal dialog
Start timer to wait for the modal dialog .