зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 910f7703f9f3 (bug 1555846) for Build bustages. CLOSED TREE
This commit is contained in:
Родитель
7a3585c49f
Коммит
5a3296d55a
|
@ -3958,14 +3958,7 @@ CookieStatus nsCookieService::CheckPrefs(
|
|||
// access to the first-party cookie jar.
|
||||
if (aIsForeign && aIsTrackingResource && !aFirstPartyStorageAccessGranted &&
|
||||
aCookieSettings->GetRejectThirdPartyTrackers()) {
|
||||
// Explicitly pass nsIWebProgressListener::STATE_COOKIES_BLOCKED_TRACKER
|
||||
// here to ensure that we are testing the partitioning configuration only
|
||||
// for the nsICookieService::BEHAVIOR_REJECT_TRACKER configuration.
|
||||
// When partitioning for BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN, we
|
||||
// don't want to give a free pass to tracker cookies here!
|
||||
if (StoragePartitioningEnabled(
|
||||
nsIWebProgressListener::STATE_COOKIES_BLOCKED_TRACKER,
|
||||
aCookieSettings)) {
|
||||
if (StoragePartitioningEnabled(aInputRejectedReason, aCookieSettings)) {
|
||||
MOZ_ASSERT(!aOriginAttrs.mFirstPartyDomain.IsEmpty(),
|
||||
"We must have a StoragePrincipal here!");
|
||||
return STATUS_ACCEPTED;
|
||||
|
|
Загрузка…
Ссылка в новой задаче