rem: function chooseProfileFolder(folder, showPopup) 
add: function chooseProfileFolder( aRootFolder ) 
context: function chooseProfileFolder(folder, showPopup){  if(showPopup) {	  try {      var fileSpec = Components.classes["component://netscape/filespecwithui"].createInstance();      if(fileSpec) {        fileSpec = fileSpec.QueryInterface(Components.interfaces.nsIFileSpecWithUI);        folder = fileSpec.chooseDirectory( bundle.GetStringFromName("chooseFolder"));          }       else folder = null;    }    catch(e) {      folder = null;    }  }  if( folder != undefined && folder ) {    var folderText = document.getElementById("ProfileDir");    if (showPopup) {	    try {    		var spec = Components.classes["component://netscape/filespec"].createInstance();		    spec = spec.QueryInterface(Components.interfaces.nsIFileSpec);    		spec.URLString = folder;		    folder = spec.nativePath;	    }	    catch (ex) {    		dump("failed to convert URL to native path\n");	    }    }    folderText.setAttribute( "value",folder );    if( showPopup )      folderText.setAttribute( "rootFolder", folder );    // show the 'use default' button    document.getElementById( "useDefault" ).setAttribute( "style", "display: inherit" );    updateProfileName();  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/5502d5ec2044d94ec720a01a29a4c3acf5ccada9/newProfile1_2.js/buggy/profile/resources/content/newProfile1_2.js