Bug 1642667 - Isolate alt-srv and connection pool per first-party when privacy.partition.network_state is set to true - part 1 - implementation, r=dragana,necko-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D78082
This commit is contained in:
Andrea Marchesini 2020-06-08 16:22:22 +00:00
Родитель 5871cc1e82
Коммит bbe813fabe
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -2432,8 +2432,8 @@ void nsHttpChannel::ProcessAltService() {
}
OriginAttributes originAttributes;
StoragePrincipalHelper::GetOriginAttributes(
this, originAttributes, StoragePrincipalHelper::eRegularPrincipal);
StoragePrincipalHelper::GetOriginAttributesForNetworkState(this,
originAttributes);
AltSvcMapping::ProcessHeader(
altSvc, scheme, originHost, originPort, mUsername, GetTopWindowOrigin(),
@ -6761,8 +6761,8 @@ nsresult nsHttpChannel::BeginConnect() {
SetDoNotTrack();
OriginAttributes originAttributes;
StoragePrincipalHelper::GetOriginAttributes(
this, originAttributes, StoragePrincipalHelper::eRegularPrincipal);
StoragePrincipalHelper::GetOriginAttributesForNetworkState(this,
originAttributes);
RefPtr<nsHttpConnectionInfo> connInfo = new nsHttpConnectionInfo(
host, port, EmptyCString(), mUsername, GetTopWindowOrigin(), proxyInfo,