rem: dump("spec is " + ioService.getURLSpecFromFile(file)); gDS = gRDF.GetDataSource(ioService.getURLSpecFromFile(file)); 
add: var fileHandler = ioService.getProtocolHandler("file").QueryInterface(Components.interfaces.nsIFileProtocolHandler); dump("spec is " + fileHandler.getURLSpecFromFile(file)); gDS = gRDF.GetDataSource(fileHandler.getURLSpecFromFile(file)); 
context: function Startup(){  // set up the string bundle  gPrefApplicationsBundle = document.getElementById("bundle_prefApplications");  // set up the elements  gList = document.getElementById("appList");   gExtensionField = document.getElementById("extension");          gMIMETypeField  = document.getElementById("mimeType");  gHandlerField   = document.getElementById("handler");  gNewTypeButton  = document.getElementById("newTypeButton");  gEditButton     = document.getElementById("editButton");  gRemoveButton   = document.getElementById("removeButton");  // Disable the Edit & Remove buttons until we click on something  updateLockedButtonState(false);  const mimeTypes = "UMimTyp";  var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties);    var file = fileLocator.get(mimeTypes, Components.interfaces.nsIFile);  var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);  dump("spec is " + ioService.getURLSpecFromFile(file));  gDS = gRDF.GetDataSource(ioService.getURLSpecFromFile(file));  // intialize the listbox  gList.database.AddDataSource(gDS);  gList.setAttribute("ref", "urn:mimetypes");}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/86e329c93d4c6a1fccb3c52f5fbc100a7c22b770/pref-applications.js/buggy/browser/components/prefwindow/content/pref-applications.js