rem: var file_url = Components.classes["component: 
add: var file_url = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIFileURL); 
context: function Startup(){  // set up the string bundle  gBundle = srGetStrBundle("chrome://communicator/locale/pref/pref-applications.properties");  // set up the elements  gTree = document.getElementById("appTree");   gExtensionField = document.getElementById("extension");          gMIMETypeField  = document.getElementById("mimeType");  gHandlerField   = document.getElementById("handler");  gEditButton     = document.getElementById("editButton");  gRemoveButton   = document.getElementById("removeButton");  const mimeTypes = "UMimTyp";  var fileLocator = Components.classes["component://netscape/file/directory_service"].getService();  if (fileLocator)    fileLocator = fileLocator.QueryInterface(Components.interfaces.nsIProperties);  var file = fileLocator.get(mimeTypes, Components.interfaces.nsIFile);  var file_url = Components.classes["component://netscape/network/standard-url"].createInstance(Components.interfaces.nsIFileURL);  if (file_url)    file_url.file = file;  gDS = gRDF.GetDataSource(file_url.spec);  if (gDS)    gDS = gDS.QueryInterface(Components.interfaces.nsIRDFDataSource);  // intialise the tree  gTree.database.AddDataSource(gDS);  gTree.setAttribute("ref", "urn:mimetypes");}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0257791053c2b38e1dfaf2ee11afae973e82e394/pref-applications.js/clean/xpfe/components/prefwindow/resources/content/pref-applications.js