diff --git a/c_adlib/FFEngine.cs b/c_adlib/FFEngine.cs index f1ac0d3f..c3124e24 100644 --- a/c_adlib/FFEngine.cs +++ b/c_adlib/FFEngine.cs @@ -51,8 +51,8 @@ namespace Novell.CASA.DataEngines public FFEngine() { - //Get Profile Names - //Console.WriteLine("FFEngine Constructor:Invoking GetDefaultProfileName:"); + //Get Profile Names + //Console.WriteLine("FFEngine Aggregate:Invoking GetDefaultProfileName:"); defaultProfileName=FireFox.GetDefaultProfileName(); //This can be extended to get all profiles : Use FireFox.GetAllProfileNames() //Currently we support only the default profile. @@ -63,28 +63,18 @@ namespace Novell.CASA.DataEngines initProfileStatus=FireFox.InitProfile(defaultProfileName); //Console.WriteLine("FFEngine Constructor:InitProfile returned "+initProfileStatus); } - else - Console.WriteLine("FFEngine Constructor:Could not get a Default Profile Name"); - } + } ~FFEngine() { - //Uninitialize the profile + //Uninitialize the profile if initialized earlier //FIXME:- CURRENTLY NOT IVOKED SINCE THERES IS A BUG WHICH NEEDS TO BE FIXED IN FF NATIVE - //Console.WriteLine("FFEngine Destructor:UnInitializing the Profile "+profileName); - //FireFox.UninitProfile(profileName); + //Console.WriteLine("FFEngine Destructor:UnInitializing the Profile "+defaultProfileName); + FireFox.UninitProfile(defaultProfileName); } public XmlNode Aggregate() { - //String defaultProfileName=null; - - //Get Profile Names - //Console.WriteLine("FFEngine:Invoking GetDefaultProfileName:"); - //defaultProfileName=FireFox.GetDefaultProfileName(); - //This can be extended to get all profiles : Use FireFox.GetAllProfileNames() - //Currently we support only the default profile. - //Init XML Document XmlDocument doc = new XmlDocument();