context: function getURLSpecFromFile (file){    if (!file)        return null;    const IOS_CTRID = "@mozilla.org/network/io-service;1";    const LOCALFILE_CTRID = "@mozilla.org/file/local;1";    const nsIIOService = Components.interfaces.nsIIOService;    const nsILocalFile = Components.interfaces.nsILocalFile;        if (typeof file == "string")    {        var fileObj =            Components.classes[LOCALFILE_CTRID].createInstance(nsILocalFile);        fileObj.initWithPath(file);        file = fileObj;    }        var service = Components.classes[IOS_CTRID].getService(nsIIOService);    /* In sept 2002, bug 166792 moved this method to the nsIFileProtocolHandler     * interface, but we need to support older versions too. */    if ("getURLSpecFromFile" in service)        return service.getURLSpecFromFile(file);    var nsIFileProtocolHandler = Components.interfaces.nsIFileProtocolHandler;    var fileHandler = service.getProtocolHandler("file");    fileHandler = fileHandler.QueryInterface(nsIFileProtocolHandler);    return fileHandler.getURLSpecFromFile(file);}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/703717eb72f3378c625c0fefe679e646d1c5b0ff/utils.js/buggy/js/lib/utils.js