зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1535697 - Part 3: Only consider third-party tracking resources as isolated channels; r=michal
Differential Revision: https://phabricator.services.mozilla.com/D28373 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
f2113beb89
Коммит
a709cc3a40
|
@ -3898,7 +3898,8 @@ bool nsHttpChannel::IsIsolated() {
|
|||
if (mHasBeenIsolatedChecked) {
|
||||
return mIsIsolated;
|
||||
}
|
||||
mIsIsolated = !AntiTrackingCommon::IsFirstPartyStorageAccessGrantedFor(
|
||||
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<nsIURI> topWindowURI;
|
||||
rv = GetTopWindowURI(getter_AddRefs(topWindowURI));
|
||||
bool isDocument = false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче