forked from mirrors/gecko-dev
Bug 1899684. Use NS_UsePrivateBrowsing in nsContentUtils::GetImgLoaderForChannel. r=necko-reviewers,kershaw
NS_UsePrivateBrowsing seems to be the more modern, correct, and widespread way to do this. Differential Revision: https://phabricator.services.mozilla.com/D212086
This commit is contained in:
parent
189d0cdf8c
commit
4410f432fc
1 changed files with 2 additions and 5 deletions
|
|
@ -4040,11 +4040,8 @@ imgLoader* nsContentUtils::GetImgLoaderForChannel(nsIChannel* aChannel,
|
|||
if (!aChannel) {
|
||||
return imgLoader::NormalLoader();
|
||||
}
|
||||
nsCOMPtr<nsILoadContext> context;
|
||||
NS_QueryNotificationCallbacks(aChannel, context);
|
||||
return context && context->UsePrivateBrowsing()
|
||||
? imgLoader::PrivateBrowsingLoader()
|
||||
: imgLoader::NormalLoader();
|
||||
return NS_UsePrivateBrowsing(aChannel) ? imgLoader::PrivateBrowsingLoader()
|
||||
: imgLoader::NormalLoader();
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
|
|||
Loading…
Reference in a new issue