-Bug Fixes
This commit is contained in:
		| @@ -70,6 +70,7 @@ namespace Novell.CASA.DataEngines | ||||
| 		//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 "+defaultProfileName); | ||||
| 		if(defaultProfileName!=null) | ||||
| 			FireFox.UninitProfile(defaultProfileName); | ||||
|        } | ||||
|  | ||||
| @@ -82,7 +83,35 @@ namespace Novell.CASA.DataEngines | ||||
|             	doc.AppendChild(rootElem); | ||||
|  | ||||
| 		//Initialize & Aggregate DefaultProfile from Firefox | ||||
| 		if(defaultProfileName == null) | ||||
| 		{ | ||||
| 			defaultProfileName=FireFox.GetDefaultProfileName();  | ||||
| 			initProfileStatus=FireFox.InitProfile(defaultProfileName); | ||||
| 			if(initProfileStatus!=1) | ||||
| 				return rootElem; | ||||
| 		} | ||||
| 		 | ||||
| 		/*Console.WriteLine("FFEngine.cs : Printing Doc to Console-BEFORE\n"); | ||||
| 		doc.Save(Console.Out); | ||||
| 		int temp = readProfileToCCF(doc,rootElem,defaultProfileName); | ||||
| 		Console.WriteLine("FFEngine.cs : Printing Doc to Console-AFTER\n"); | ||||
| 		doc.Save(Console.Out);*/ | ||||
|  | ||||
| 		int temp = readProfileToCCF(doc,rootElem,defaultProfileName); | ||||
| 	 | ||||
| 		if(temp!=1) | ||||
| 		{ | ||||
| 			//Console.WriteLine("FFEngine : Host List is null even when secrets are present"); | ||||
| 			FireFox.UninitProfile(defaultProfileName); | ||||
| 			defaultProfileName = FireFox.GetDefaultProfileName(); | ||||
| 			//Console.WriteLine("FFEngine : Default Profile Name : " + defaultProfileName); | ||||
| 			if(defaultProfileName==null) | ||||
| 				return rootElem; | ||||
| 			initProfileStatus = FireFox.InitProfile(defaultProfileName); | ||||
| 			if(initProfileStatus!=1) | ||||
| 				return rootElem; | ||||
| 			readProfileToCCF(doc,rootElem,defaultProfileName); | ||||
| 		} | ||||
| 		 | ||||
| 		//Initialize & Aggregate any other profiles here if required.... | ||||
| 	 | ||||
| @@ -183,6 +212,7 @@ namespace Novell.CASA.DataEngines | ||||
| 				 | ||||
| 			if(hostList!=null) | ||||
| 			{// Something to Aggregate | ||||
| 					//Console.WriteLine("\nFFEngine.cs : HostList is not null"); | ||||
| 		            		XmlElement xmlProfileElement; | ||||
|  | ||||
|               				String hostName; | ||||
| @@ -279,8 +309,10 @@ namespace Novell.CASA.DataEngines | ||||
|         { | ||||
|               try | ||||
|               { | ||||
| 		    System.Runtime.InteropServices.Marshal.PrelinkAll(typeof(FireFox)); | ||||
| 		    if(FireFox.IsStoreAvailable() == 1) | ||||
|                     	return true;                 | ||||
| 		    else | ||||
| 			return false; | ||||
|               } | ||||
|               catch(DllNotFoundException d) | ||||
|               { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user