rem: if (caltype == "caldav") { 
add: if (caltype == "caldav" || caltype == "ics") { 
context: function createCalendar(){    var prefobj = prefService.getBranch("calendar.");    var caltype = getCharPref(prefobj, "default-calendar.type", "memory");    var calendar = Components.classes["@mozilla.org/calendar/calendar;1?type=" + caltype].getService(Components.interfaces.calICalendar);    if (calendar.uri || caltype == "memory")        return calendar;    var uri = null;    if (caltype == "caldav") {        var uriString = getCharPref(prefobj, "default-calendar.uri", null);        uri = makeURL(uriString);    } else if (caltype == "storage") {        var pathString = getCharPref(prefobj, "default-calendar.path", null);        var dbFile = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);        dbFile.initWithPath(pathString);        var ioservice = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);        uri = ioservice.newFileURI(dbFile);    }    if (!uri) {        throw "Calendar type " + caltype +             " requires that default-calendar.uri pref be set!";    }    calendar.uri = uri;    return calendar;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/dacf363ff321d7ef65eb917a6d284ba3a70abea5/calendar.js/clean/calendar/resources/content/calendar.js