Bug 1625568 - Add compatibility heuristics to third-party cookie blocking - part 5 - extra code to enable heuristics, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D69355
This commit is contained in:
@@ -172,8 +172,8 @@ nsCString ImageCacheKey::GetTopLevelBaseDomain(Document* aDocument,
|
||||
|
||||
// If the window is 3rd party resource, let's see if first-party storage
|
||||
// access is granted for this image.
|
||||
if (nsContentUtils::IsThirdPartyTrackingResourceWindow(
|
||||
aDocument->GetInnerWindow())) {
|
||||
if (nsContentUtils::IsThirdPartyWindowOrChannel(aDocument->GetInnerWindow(),
|
||||
nullptr, nullptr)) {
|
||||
return StorageDisabledByAntiTracking(aDocument, aURI)
|
||||
? aDocument->GetBaseDomain()
|
||||
: EmptyCString();
|
||||
|
||||
Reference in New Issue
Block a user