mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +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;
|
||||
return NS_OK;
|
||||
}
|
||||
if (!other) {
|
||||
*result = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsICertificatePrincipal> otherCertificate =
|
||||
do_QueryInterface(other, &rv);
|
||||
|
@ -72,6 +72,10 @@ nsCodebasePrincipal::Equals(nsIPrincipal *other, PRBool *result)
|
||||
*result = PR_TRUE;
|
||||
return NS_OK;
|
||||
}
|
||||
if (!other) {
|
||||
*result = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
nsCOMPtr<nsICodebasePrincipal> otherCodebase;
|
||||
if (NS_FAILED(other->QueryInterface(
|
||||
NS_GET_IID(nsICodebasePrincipal),
|
||||
|
Loading…
Reference in New Issue
Block a user