B2G/gecko/testing/marionette/marionette-server.js
/**
   * Start a new session in a new browser. 
   *
   * If newSession is true, we will switch focus to the start frame 
   * when it registers. Also, if it is in desktop, then a new tab 
   * with the start page uri (about:blank) will be opened.
   *
   * @param nsIDOMWindow win
   *        Window whose browser we need to access
   * @param boolean newSession
   *        True if this is the first time we're talking to this browser
   */
Start a new session in a new browser.
If newSession is true, we will switch focus to the start frame
when it registers. Also, if it is in desktop, then a new tab
with the start page uri (about:blank) will be opened.

@param nsIDOMWindow win
Window whose browser we need to access
@param boolean newSession
True if this is the first time we're talking to this browser
Start a new session in a new browser . If newSession is true we will switch focus to the start frame when it registers . Also if it is in desktop then a new tab with the start page uri ( about : blank ) will be opened . @param nsIDOMWindow win Window whose browser we need to access @param boolean newSession True if this is the first time we ' re talking to this browser
function MDA_startBrowser(win, newSession) {
    this.mainFrame = win;
    this.curFrame = null;
    this.addBrowser(win);
    this.curBrowser.newSession = newSession;
    this.curBrowser.startSession(newSession, win, this.whenBrowserStarted.bind(this));
  }
function MDA_startBrowser ( win , newSession ) { this . mainFrame = win ; this . curFrame = null ; this . addBrowser ( win ) ; this . curBrowser . newSession = newSession ; this . curBrowser . startSession ( newSession , win , this . whenBrowserStarted . bind ( this ) ) ; }
Start a new session in a new browser.
Start a new session in a new browser .