rem: var calComp = icssrv.parseICS(aData); 
add: var calComp = icssrv.parseICS(str); 
context: function ics_importFromStream(aStream, aCount) {    var items = new Array();    icssrv = Components.classes["@mozilla.org/calendar/ics-service;1"]                       .getService(Components.interfaces.calIICSService);    var calComp = icssrv.parseICS(aData);    var subComp = calComp.getFirstSubcomponent("ANY");    while (subComp) {        switch (subComp.componentType) {        case "VEVENT":            var event = createEvent();            event.icalComponent = subComp;            items.push(event);            break;        case "VTODO":            var todo = createToDo();            todo.icalComponent = subComp;            items.push(todo);            break;        default:            // Nothing        }        subComp = calComp.getNextSubcomponent("ANY");    }    aCount.value = items.length;    return items;};
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b53700cfb7c4541e0aa627d489a60194eb8087c4/calIcsImportExport.js/buggy/calendar/import-export/calIcsImportExport.js