B2G/gecko/testing/marionette/marionette-server.js
/**
 * Creates a BrowserObj. BrowserObjs handle interactions with the
 * browser, according to the current environment (desktop, b2g, etc.)
 *
 * @param nsIDOMWindow win
 *        The window whose browser needs to be accessed
 */


@param nsIDOMWindow win
The window whose browser needs to be accessed
@param nsIDOMWindow win The window whose browser needs to be accessed
function BrowserObj(win) {
  this.DESKTOP = "desktop";
  this.B2G = "B2G";
  this.browser;
  this.tab = null;
  this.window = win;
  this.knownFrames = [];
  this.curFrameId = null;
  this.startPage = "about:blank";
  this.mainContentId = null; 
  this.newSession = true; 
  this.elementManager = new ElementManager([SELECTOR, NAME, LINK_TEXT, PARTIAL_LINK_TEXT]);
  this.setBrowser(win);
}
function BrowserObj ( win ) { this . DESKTOP = "desktop" ; this . B2G = "B2G" ; this . browser ; this . tab = null ; this . window = win ; this . knownFrames = [ ] ; this . curFrameId = null ; this . startPage = "about:blank" ; this . mainContentId = null ; this . newSession = true ; this . elementManager = new ElementManager ( [ SELECTOR , NAME , LINK_TEXT , PARTIAL_LINK_TEXT ] ) ; this . setBrowser ( win ) ; }
Creates a BrowserObj.
Creates a BrowserObj .
// used in B2G to identify the homescreen content page //used to set curFrameId upon new session