diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp index db8a15a9a0bf..d806b29c8949 100644 --- a/netwerk/protocol/http/nsHttpChannel.cpp +++ b/netwerk/protocol/http/nsHttpChannel.cpp @@ -3898,8 +3898,9 @@ bool nsHttpChannel::IsIsolated() { if (mHasBeenIsolatedChecked) { return mIsIsolated; } - mIsIsolated = !AntiTrackingCommon::IsFirstPartyStorageAccessGrantedFor( - this, mURI, nullptr); + mIsIsolated = IsThirdPartyTrackingResource() && + !AntiTrackingCommon::IsFirstPartyStorageAccessGrantedFor( + this, mURI, nullptr); mHasBeenIsolatedChecked = true; return mIsIsolated; } @@ -4023,7 +4024,7 @@ nsresult nsHttpChannel::OpenCacheEntryInternal( extension.Append("TRR"); } - if (IsThirdPartyTrackingResource() && IsIsolated()) { + if (IsIsolated()) { nsCOMPtr topWindowURI; rv = GetTopWindowURI(getter_AddRefs(topWindowURI)); bool isDocument = false;