mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 242564 revert default p3p cookie action to pre-225298 state, r=dwitte,sr=darin
This commit is contained in:
parent
6a28e412f6
commit
d81a94b560
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user