Bug 1483604 - Part 2: Make all of the external consumers of nsContentUtils::StorageDisabledByAntiTracking() pass a channel if available; r=smaug

This commit is contained in:
Ehsan Akhgari
2018-08-15 18:02:48 -04:00
parent a4a5bea4b5
commit 6bb98a581a
3 changed files with 20 additions and 8 deletions

View File

@@ -143,10 +143,7 @@ ImageCacheKey::GetSpecialCaseDocumentToken(nsIDocument* aDocument, nsIURI* aURI)
// If we must disable the storage, we want to create a unique cache key for
// this image.
if (nsContentUtils::StorageDisabledByAntiTracking(aDocument->GetInnerWindow(),
nullptr,
aDocument->NodePrincipal(),
aURI)) {
if (nsContentUtils::StorageDisabledByAntiTracking(aDocument, aURI)) {
return aDocument;
}