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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user