rem: var rv = pickOpen(MSG_PREFS_BROWSE_TITLE, spec); 
add: var type = button.getAttribute("kind"); var edit = button.previousSibling.lastChild;  var rv; if (type == "folder") { var current = getFileFromURLSpec(edit.value); rv = pickGetFolder(MSG_PREFS_BROWSE_TITLE, current); } else { rv = pickOpen(MSG_PREFS_BROWSE_TITLE, spec); }  
context: function pwin_onPrefBrowse(button){    var spec = "$all";    if (button.hasAttribute("spec"))        spec = button.getAttribute("spec") + " " + spec;        var rv = pickOpen(MSG_PREFS_BROWSE_TITLE, spec);    if (rv.reason != PICK_OK)        return;        var data = { file: rv.file.path, fileurl: rv.picker.fileURL.spec };    var edit = button.previousSibling.lastChild;    var type = button.getAttribute("kind");    edit.value = data[type];},
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/bf94b58e03b71f81f7843fa4d6ae1393d28b9ffa/config.js/buggy/xul/content/config.js