rem: const directory = o.displayDirectory.unicodePath; 
add: const directory = o.displayDirectory.path; 
context: function filepickerLoad() {  gFilePickerBundle = document.getElementById("bundle_filepicker");  textInput = document.getElementById("textInput");  okButton = document.documentElement.getButton("accept");  treeView = Components.classes[nsFileView_CONTRACTID].createInstance(nsIFileView);  if (window.arguments) {    var o = window.arguments[0];    retvals = o.retvals; /* set this to a global var so we can set return values */    const title = o.title;    filePickerMode = o.mode;    if (o.displayDirectory) {      const directory = o.displayDirectory.unicodePath;    }    const initialText = o.defaultString;    const filterTitles = o.filters.titles;    const filterTypes = o.filters.types;    const numFilters = filterTitles.length;    window.title = title;    if (initialText) {      textInput.value = initialText;    }  }  if ((filePickerMode == nsIFilePicker.modeOpen) ||      (filePickerMode == nsIFilePicker.modeSave)) {    treeView.setFilter(filterTypes[0]);    /* build filter popup */    var filterPopup = document.createElement("menupopup");    for (var i = 0; i < numFilters; i++) {      var menuItem = document.createElement("menuitem");      menuItem.setAttribute("label", filterTitles[i] + " (" + filterTypes[i] + ")");      menuItem.setAttribute("filters", filterTypes[i]);      filterPopup.appendChild(menuItem);    }    var filterMenuList = document.getElementById("filterMenuList");    filterMenuList.appendChild(filterPopup);    if (numFilters > 0)      filterMenuList.selectedIndex = 0;    var filterBox = document.getElementById("filterBox");    filterBox.removeAttribute("hidden");    filterMenuList.selectedIndex = o.filterIndex;  } else if (filePickerMode == nsIFilePicker.modeGetFolder) {    treeView.showOnlyDirectories = true;  }  // start out with a filename sort  handleColumnClick("FilenameColumn");  document.documentElement.setAttribute("ondialogcancel", "return onCancel();");  try {    var buttonLabel = getOKAction();    okButton.setAttribute("label", buttonLabel);  } catch (exception) {    // keep it set to "OK"  }  // setup the dialogOverlay.xul button handlers  retvals.buttonStatus = nsIFilePicker.returnCancel;  var tree = document.getElementById("directoryTree");  tree.treeBoxObject.view = treeView;  // Start out with the ok button disabled since nothing will be  // selected and nothing will be in the text field.  okButton.disabled = true;  textInput.focus();  // This allows the window to show onscreen before we begin  // loading the file list  setTimeout(setInitialDirectory, 0, directory);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e554d8362610c90f4ebe2db02722d04eb1194011/filepicker.js/clean/xpfe/components/filepicker/res/content/filepicker.js