diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp index d10d54944ee9..823ca5756faf 100644 --- a/netwerk/protocol/http/nsHttpChannel.cpp +++ b/netwerk/protocol/http/nsHttpChannel.cpp @@ -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 connInfo = new nsHttpConnectionInfo( host, port, EmptyCString(), mUsername, GetTopWindowOrigin(), proxyInfo,