mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
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:
parent
b70ec2e916
commit
75dd1c0c9f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user