rem: var downloadDir = currentDirPref.value || this._indexToFile(folderListPref.value); 
add: var downloadDir = currentDirPref.value || this._indexToFolder(folderListPref.value); 
context:   readDownloadDirPref: function ()  {    var folderListPref = document.getElementById("browser.download.folderList");    var bundlePreferences = document.getElementById("bundlePreferences");    var downloadFolder = document.getElementById("downloadFolder");    var customDirPref = document.getElementById("browser.download.dir");    var customIndex = customDirPref.value ? this._folderToIndex(customDirPref.value) : 0;    if (folderListPref.value == 0 || customIndex == 0)      downloadFolder.label = bundlePreferences.getString("desktopFolderName");    else if (folderListPref.value == 1 || customIndex == 1)      downloadFolder.label = bundlePreferences.getString("myDownloadsFolderName");    else      downloadFolder.label = this._getDisplayNameOfFile(customDirPref.value);    var ios = Components.classes["@mozilla.org/network/io-service;1"]                        .getService(Components.interfaces.nsIIOService);    var fph = ios.getProtocolHandler("file")                 .QueryInterface(Components.interfaces.nsIFileProtocolHandler);    var currentDirPref = document.getElementById("browser.download.downloadDir");    var downloadDir = currentDirPref.value || this._indexToFile(folderListPref.value);    var urlspec = fph.getURLSpecFromFile(downloadDir);    downloadFolder.image = "moz-icon://" + urlspec + "?size=16";    // don't override the preference's value in UI    return undefined;  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c409ebc7a8376b46e9638bc2095e5973bd5452dc/main.js/buggy/browser/components/preferences/main.js