rem:   var regFolder = dirServ.get("AppRegD", Components.interfaces.nsIFile); dump("New location for profile registry and user profile directories is -> " + regFolder.path + "\n");  
context: function StartUp(){  gDialogParams = window.arguments[0].                    QueryInterface(Components.interfaces.nsIDialogParamBlock);  gStartupMode = (gDialogParams.GetString(0) == "startup");    gProfileManagerBundle = document.getElementById("bundle_profileManager");  gBrandBundle = document.getElementById("bundle_brand");  SetUpOKCancelButtons();  centerWindowOnScreen();  if(window.location && window.location.search && window.location.search == "?manage=true" )    SwitchProfileManagerMode();      // Set up the intro text, depending on our context  var introTextItem = document.getElementById("intro");  var introText, insertText;  if (gStartupMode) {    insertText = gProfileManagerBundle.getFormattedString("startButton",                                    [gBrandBundle.getString("brandShortName")]);    introText = gProfileManagerBundle.getFormattedString("intro_start",                    [insertText]);  }  else {    insertText = gProfileManagerBundle.getString("selectButton");    introText = gProfileManagerBundle.getFormattedString("intro_switch",                    [insertText]);  }  introTextItem.childNodes[0].nodeValue = introText;  var dirServ = Components.classes['@mozilla.org/file/directory_service;1'].createInstance();  dirServ = dirServ.QueryInterface(Components.interfaces.nsIProperties);  // "AggRegF" stands for Application Registry File.  // Forgive the weird name directory service has adapted for  // application registry file....  var regFile = dirServ.get("AppRegF", Components.interfaces.nsIFile);  Registry = Components.classes['@mozilla.org/registry;1'].createInstance();  Registry = Registry.QueryInterface(Components.interfaces.nsIRegistry);  Registry.open(regFile);  // get new profile registry & users location and dump it to console  // to let users know about it.  var regFolder = dirServ.get("AppRegD", Components.interfaces.nsIFile);  dump("New location for profile registry and user profile directories is -> " + regFolder.path + "\n");  loadElements();  highlightCurrentProfile();  var offlineState = document.getElementById("offlineState");  if (gStartupMode) {    // set the checkbox to reflect the current state.    var ioService = Components.classes["@mozilla.org/network/io-service;1"].                      getService(Components.interfaces.nsIIOService);    offlineState.checked = ioService.offline;  }  else {    // hide the checkbox in this context    offlineState.hidden = true;  }  var autoSelectLastProfile = document.getElementById("autoSelectLastProfile");  autoSelectLastProfile.checked = profile.startWithLastUsedProfile;  var profileList = document.getElementById("profiles");  profileList.focus();  DoEnabling();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d87cce903efe87d8442102d29ea84551677e80ae/profileSelection.js/buggy/profile/resources/content/profileSelection.js