Bug 1489624 - Ensure that the Necko cache will only be partitioned for third-party tracker resources r=mayhemer

Differential Revision: https://phabricator.services.mozilla.com/D6281

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ehsan Akhgari 2018-09-20 01:17:36 +00:00
parent e3f9c55a17
commit bb5a089b38

View File

@ -3965,7 +3965,8 @@ nsHttpChannel::OpenCacheEntryInternal(bool isHttps,
extension.Append("TRR");
}
if (!AntiTrackingCommon::IsFirstPartyStorageAccessGrantedFor(this, mURI, nullptr)) {
if (mIsThirdPartyTrackingResource &&
!AntiTrackingCommon::IsFirstPartyStorageAccessGrantedFor(this, mURI, nullptr)) {
nsCOMPtr<nsIURI> topWindowURI;
rv = GetTopWindowURI(getter_AddRefs(topWindowURI));
bool isDocument = false;