Bug 1639154 - Isolate network cache per first-party when privacy.partition.network_state is set to true - part 1 - implementation, r=mayhemer,necko-reviewers
authorAndrea Marchesini <amarchesini@mozilla.com>
Wed, 20 May 2020 16:46:39 +0000
changeset 531380 66abd66fc467e54eea786f49af71319cbf72bade
parent 531379 a55d8ca4738f9b51515959de087df55e5d5999d8
child 531381 7e53b5398797485e8f326bde1fcb5820afcbc8a2
push id37439
push userbtara@mozilla.com
push dateThu, 21 May 2020 21:49:34 +0000
treeherdermozilla-central@92c11f0bf14b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmayhemer, necko-reviewers
bugs1639154
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1639154 - Isolate network cache per first-party when privacy.partition.network_state is set to true - part 1 - implementation, r=mayhemer,necko-reviewers Differential Revision: https://phabricator.services.mozilla.com/D75921
netwerk/base/LoadContextInfo.cpp
--- a/netwerk/base/LoadContextInfo.cpp
+++ b/netwerk/base/LoadContextInfo.cpp
@@ -116,18 +116,17 @@ LoadContextInfo* GetLoadContextInfo(nsIC
   bool anon = false;
   nsLoadFlags loadFlags;
   rv = aChannel->GetLoadFlags(&loadFlags);
   if (NS_SUCCEEDED(rv)) {
     anon = !!(loadFlags & nsIChannel::LOAD_ANONYMOUS);
   }
 
   OriginAttributes oa;
-  StoragePrincipalHelper::GetOriginAttributes(
-      aChannel, oa, StoragePrincipalHelper::eRegularPrincipal);
+  StoragePrincipalHelper::GetOriginAttributesForNetworkState(aChannel, oa);
   MOZ_ASSERT(pb == (oa.mPrivateBrowsingId > 0));
 
   return new LoadContextInfo(anon, oa);
 }
 
 LoadContextInfo* GetLoadContextInfo(nsILoadContext* aLoadContext,
                                     bool aIsAnonymous) {
   if (!aLoadContext) {