add: if (filePickerMode == nsIFilePicker.modeGetFolder) { textInput.value = ""; } 
context: function gotoDirectory(directory) {  window.setCursor("wait");  try {    populateAncestorList(directory);    treeView.setDirectory(directory);    document.getElementById("errorShower").selectedIndex = 0;  } catch(ex) {    document.getElementById("errorShower").selectedIndex = 1;  }  window.setCursor("auto");  treeView.QueryInterface(nsITreeView).selection.clearSelection();  textInput.focus();  sfile = directory;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d606de2ade17f849cdff9b28d3aa398ec960a00e/filepicker.js/buggy/xpfe/components/filepicker/res/content/filepicker.js