rem: dirChooser.show(); 
add: if (dirChooser.show() == dirChooser.returnCancel) return; 
context: function chooseProfileFolder(){  var newProfileRoot;    try {    var dirChooser = Components.classes["@mozilla.org/filepicker;1"].createInstance(Components.interfaces.nsIFilePicker);    dirChooser.init(window, gProfileManagerBundle.getString("chooseFolder"), Components.interfaces.nsIFilePicker.modeGetFolder);    dirChooser.appendFilters(Components.interfaces.nsIFilePicker.filterAll);    dirChooser.show();    newProfileRoot = dirChooser.file;  }  catch(e) {    // If something fails, change nothing.    return;  }  // Disable the "Default Folder..." button when the default profile folder  // was selected manually in the File Picker.  // This is always false on Windows, until bug 221872 is fixed.  document.getElementById("useDefault").disabled = (newProfileRoot.equals(gProfile.defaultProfileParentDir));  setDisplayToFolder(newProfileRoot);  updateProfileDisplay();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/066795292878c23cd802f49d3f3f2a5b29887894/createProfileWizard.js/clean/profile/resources/content/createProfileWizard.js