rem: currProfile = profileCore.GetCurrentProfile(); 
add: try { currProfile = profile.currentProfile; } catch (ex) { if (profileList != "") { currProfile = profileList; } } 
context: function loadElements(){	dump("****************hacked onload handler adds elements to tree widget\n");	var profileList = "";	profileCore = Components.classes["component://netscape/profile/profile-services"].createInstance();	profileCore = profileCore.QueryInterface(Components.interfaces.nsIProfileServices);	dump("profile = " + profileCore + "\n");		profileList = profileCore.GetProfileList();		//dump("Got profile list of '" + profileList + "'\n");	profileList = profileList.split(",");	currProfile = profileCore.GetCurrentProfile();	for (var i=0; i < profileList.length; i++)	{		var pvals = profileList[i].split(" - ");		addTreeItem(i, pvals[0], (pvals[1] == "migrate"));	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a0a70c9ca0b6c83902dfc8d9d0a99e1daa1f0dc5/pm.js/clean/profile/resources/pm.js