B2G/gecko/testing/marionette/marionette-server.js
/**
   * Set the browser if the application is not B2G
   *
   * @param nsIDOMWindow win
   *        current window reference
   */
Set the browser if the application is not B2G
@param nsIDOMWindow win
current window reference
Set the browser if the application is not B2G @param nsIDOMWindow win current window reference
function BO_setBrowser(win) {
    switch (appName) {
      case "Firefox":
        this.browser = win.gBrowser;
        break;
      case "Fennec":
        this.browser = win.BrowserApp;
        break;
    }
  }
function BO_setBrowser ( win ) { switch ( appName ) { case "Firefox" : this . browser = win . gBrowser ; break ; case "Fennec" : this . browser = win . BrowserApp ; break ; } }
Set the browser if the application is not B2G
 @param nsIDOMWindow win
        current window reference
Set the browser if the application is not B2G @param nsIDOMWindow win current window reference