rem: var sfile = Components.classes[nsILocalFile_PROGID].createInstance(nsILocalFile); 
add: var sfile = Components.classes[nsILocalFile_CONTRACTID].createInstance(nsILocalFile); 
context: function updateProfileName(){  const nsILocalFile = Components.interfaces.nsILocalFile;   const nsILocalFile_PROGID = "component://mozilla/file/local";  var profileName = document.getElementById( "ProfileName" );  var folderDisplayElement = document.getElementById( "ProfileDir" );  var rootFolder = folderDisplayElement.getAttribute( "rootFolder" );  try {    var sfile = Components.classes[nsILocalFile_PROGID].createInstance(nsILocalFile);     if ( sfile ) {      // later change to       sfile.initWithUnicodePath(rootFolder);    }    // later change to     sfile.appendUnicode(profileName.value);        clearFolderDisplay();    // later change to     var value = document.createTextNode( sfile.unicodePath );    folderDisplayElement.appendChild( value );  }  catch(e) {  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0257791053c2b38e1dfaf2ee11afae973e82e394/newProfile1_2.js/clean/profile/resources/content/newProfile1_2.js