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
This commit is contained in:
Andrea Marchesini
2019-01-31 17:51:58 +00:00
parent 8481078eaa
commit 5cb410aaab

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;