Bug 671906 - Fix the logic for matching principals in imagelib CORS code. r=bz

This commit is contained in:
Joe Drew 2011-07-17 13:40:24 -04:00
parent 33e03d0d4b
commit f2e56e6dc3

View File

@ -445,7 +445,7 @@ ValidateCORS(imgRequest* request, PRInt32 corsmode, nsIPrincipal* loadingPrincip
if (otherprincipal && loadingPrincipal) {
PRBool equals = PR_FALSE;
otherprincipal->Equals(loadingPrincipal, &equals);
return !equals;
return equals;
}
}