mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Fix crash in nsCodebasePrincipal::Equals when browser.registration.enable is set to true.
r=racham
This commit is contained in:
parent
bc8b3621c5
commit
b5850888fc
@ -75,6 +75,10 @@ nsCertificatePrincipal::Equals(nsIPrincipal * other, PRBool * result)
|
|||||||
*result = PR_TRUE;
|
*result = PR_TRUE;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
if (!other) {
|
||||||
|
*result = PR_FALSE;
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
nsCOMPtr<nsICertificatePrincipal> otherCertificate =
|
nsCOMPtr<nsICertificatePrincipal> otherCertificate =
|
||||||
do_QueryInterface(other, &rv);
|
do_QueryInterface(other, &rv);
|
||||||
|
@ -72,6 +72,10 @@ nsCodebasePrincipal::Equals(nsIPrincipal *other, PRBool *result)
|
|||||||
*result = PR_TRUE;
|
*result = PR_TRUE;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
if (!other) {
|
||||||
|
*result = PR_FALSE;
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
nsCOMPtr<nsICodebasePrincipal> otherCodebase;
|
nsCOMPtr<nsICodebasePrincipal> otherCodebase;
|
||||||
if (NS_FAILED(other->QueryInterface(
|
if (NS_FAILED(other->QueryInterface(
|
||||||
NS_GET_IID(nsICodebasePrincipal),
|
NS_GET_IID(nsICodebasePrincipal),
|
||||||
|
Loading…
Reference in New Issue
Block a user