Bug 242564 revert default p3p cookie action to pre-225298 state, r=dwitte,sr=darin

This commit is contained in:
dveditz%cruzio.com 2004-05-07 08:04:45 +00:00
parent 6a28e412f6
commit d81a94b560

View File

@ -1712,19 +1712,18 @@ nsCookieService::CheckPrefs(nsIURI *aHostURI,
// check to see if P3P conditions are satisfied. see nsICookie.idl for
// P3P-related constants.
nsCookieStatus p3pStatus = nsICookie::STATUS_REJECTED;
nsCookieStatus p3pStatus = nsICookie::STATUS_UNKNOWN;
nsCOMPtr<nsIHttpChannel> httpChannel = do_QueryInterface(aChannel);
if (httpChannel) {
// lazily init the P3P service
if (!mP3PService)
mP3PService = do_GetService(NS_COOKIECONSENT_CONTRACTID);
if (mP3PService) {
// get the site policy and a status decision for the cookie
PRBool isForeign = IsForeign(aHostURI, aFirstURI);
mP3PService->GetConsent(aHostURI, httpChannel, isForeign, &aPolicy, &p3pStatus);
}
// lazily init the P3P service
if (!mP3PService)
mP3PService = do_GetService(NS_COOKIECONSENT_CONTRACTID);
if (mP3PService) {
// get the site policy and a status decision for the cookie
PRBool isForeign = IsForeign(aHostURI, aFirstURI);
mP3PService->GetConsent(aHostURI, httpChannel, isForeign, &aPolicy, &p3pStatus);
}
if (p3pStatus == nsICookie::STATUS_REJECTED) {