On Mac, we should look for systemSignature.jar in Essential FIles, not the bin directory. Bug 40468, r=sgehani, a=clayton.

git-svn-id: svn://10.0.0.236/trunk@71397 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mstoltz%netscape.com
2000-06-02 22:22:11 +00:00
parent ee347b5e0a
commit 02532660a5

View File

@@ -1134,6 +1134,11 @@ nsScriptSecurityManager::SetCanEnableCapability(const char* certificateID,
rv = directoryService->Get("system.OS_CurrentProcessDirectory", NS_GET_IID(nsIFile),
getter_AddRefs(systemCertFile));
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
#ifdef XP_MAC
// On Mac, this file will be located in the Essential Files folder
systemCertFile->Append("Essential Files");
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
#endif
systemCertFile->Append("systemSignature.jar");
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
nsCOMPtr<nsIZipReader> systemCertJar;