Bug 1524313 - ImageCacheKey should use the right method to check if a window is 3rd party, r=Ehsan

Differential Revision: https://phabricator.services.mozilla.com/D18243

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrea Marchesini 2019-01-31 17:51:58 +00:00
parent b70ec2e916
commit 75dd1c0c9f

View File

@ -134,7 +134,8 @@ bool ImageCacheKey::SchemeIs(const char* aScheme) {
// If the window is 3rd party resource, let's see if first-party storage
// access is granted for this image.
if (nsContentUtils::IsTrackingResourceWindow(aDocument->GetInnerWindow())) {
if (nsContentUtils::IsThirdPartyTrackingResourceWindow(
aDocument->GetInnerWindow())) {
return nsContentUtils::StorageDisabledByAntiTracking(aDocument, aURI)
? aDocument
: nullptr;