bug 613603 - Don't check the manifest in the omnijar r=tglek a=blocking-fennec

This commit is contained in:
Michael Wu 2010-11-23 21:14:52 -05:00
parent 7502b91267
commit 75eedc3cff

View File

@ -393,6 +393,13 @@ nsJAR::GetCertificatePrincipal(const char* aFilename, nsIPrincipal** aPrincipal)
return NS_ERROR_NULL_POINTER;
*aPrincipal = nsnull;
#ifdef MOZ_OMNIJAR
// Don't check signatures in the omnijar - this is only
// interesting for extensions/XPIs.
if (mZip == mozilla::OmnijarReader())
return NS_OK;
#endif
//-- Parse the manifest
nsresult rv = ParseManifest();
if (NS_FAILED(rv)) return rv;