rem:   if (!startPage && "arguments" in window && window.arguments.length > 0) startPage = window.arguments[0];  if (!startPage) startPage = "about:blank";  loadURI(startPage); 
context: function Startup(){  window.XULBrowserWindow = new nsXULBrowserWindow();  var webNavigation;  try {    // Create the browser instance component.    appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"]                        .createInstance(Components.interfaces.nsIBrowserInstance);    if (!appCore)      throw Components.results.NS_ERROR_FAILURE;    webNavigation = getWebNavigation();    if (!webNavigation)      throw Components.results.NS_ERROR_FAILURE;  } catch (e) {    alert("Error creating browser instance");    window.close(); // Give up.    return;  }  _content.appCore = appCore;  // Initialize browser instance..  appCore.setWebShellWindow(window);  // give urlbar focus so it'll be an active editor and d&d will work properly  gURLBar = document.getElementById("urlbar");  gURLBar.focus();  // set the offline/online mode  setOfflineStatus();  // Add a capturing event listener to the content area  // (rjc note: not the entire window, otherwise we'll get sidebar pane loads too!)  //  so we'll be notified when onloads complete.  var contentArea = document.getElementById("appcontent");  contentArea.addEventListener("load", loadEventHandlers, true);  contentArea.addEventListener("focus", contentAreaFrameFocus, true);  // set default character set if provided  debug("*** Pulling out the charset\n");  if ("arguments" in window && window.arguments.length > 1) {    if (window.arguments[1].indexOf("charset=") != -1) {      var arrayArgComponents = window.arguments[1].split("=");      if (arrayArgComponents) {        //we should "inherit" the charset menu setting in a new window        appCore.SetDocumentCharset(arrayArgComponents[1]);        debug("*** SetDocumentCharset(" + arrayArgComponents[1] + ")\n");      }    }  }  try {    var searchMode = pref.GetIntPref("browser.search.mode");    setBrowserSearchMode(searchMode);  } catch (ex) {  }  // set home button tooltip text  var homePage = getHomePage();  if (homePage)    document.getElementById("home-button").setAttribute("tooltiptext", homePage);  var startPage;  if (!appCore.cmdLineURLUsed) {    // load appropriate initial page from commandline.    var isPageCycling = appCore.startPageCycler();    if (!isPageCycling) {      var cmdLineService = Components.classes["@mozilla.org/appshell/commandLineService;1"]                                     .getService(Components.interfaces.nsICmdLineService);      startPage = cmdLineService.URLToLoad;      appCore.cmdLineURLUsed = true;    }  }  // Check for window.arguments[0]. If present, use that for startPage.  if (!startPage && "arguments" in window && window.arguments.length > 0)    startPage = window.arguments[0];  if (!startPage)    startPage = "about:blank";  loadURI(startPage);  initConsoleListener();  // Perform default browser checking.  checkForDefaultBrowser();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d4913a6a24d717a464c8a9d1fc4bec8112dd7e8c/navigator.js/buggy/xpfe/browser/resources/content/navigator.js