rem: var profileComponent = Components.classes["@mozilla.org/profile/manager;1"].createInstance();  var profileInternal = profileComponent.QueryInterface(Components.interfaces.nsIProfileInternal);  var profileFile = profileInternal.getProfileDir(profileInternal.currentProfile);  return( profileFile ); 
add: var dirService; if( "@mozilla.org/directory_service;1" in Components.classes ) { dirService = Components.classes["@mozilla.org/directory_service;1"] .getService(Components.interfaces.nsIProperties); } else { dirService = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); } var profileDir = dirService.get("ProfD", Components.interfaces.nsIFile); return profileDir; 
context: calendarManager.prototype.getProfileDirectory = function calMan_getProfileDirectory(){   var profileComponent = Components.classes["@mozilla.org/profile/manager;1"].createInstance();         var profileInternal = profileComponent.QueryInterface(Components.interfaces.nsIProfileInternal);    var profileFile = profileInternal.getProfileDir(profileInternal.currentProfile);         return( profileFile );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/529b4b363bd93c55db4c80406d8c97ff0046ecb2/calendarManager.js/clean/calendar/resources/content/calendarManager.js