Backed out changeset 910f7703f9f3 (bug 1555846) for Build bustages. CLOSED TREE

This commit is contained in:
Dorel Luca 2019-05-31 17:24:43 +03:00
Родитель 7a3585c49f
Коммит 5a3296d55a
1 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -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;