mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 08:17:31 +09:00
Part 1: network component changes.
This commit is contained in:
parent
59ee48bfb0
commit
c8412ad501
8 changed files with 104 additions and 20 deletions
|
|
@ -654,8 +654,13 @@ private:
|
|||
{
|
||||
nsID channelId;
|
||||
nsLoadFlags flags;
|
||||
|
||||
nsContentPolicyType contentPolicyType =
|
||||
loadInfo ? loadInfo->GetExternalContentPolicyType()
|
||||
: nsIContentPolicy::TYPE_OTHER;
|
||||
|
||||
if (NS_FAILED(gHttpHandler->NewChannelId(&channelId)) ||
|
||||
NS_FAILED(chan->Init(uri, caps, nullptr, 0, nullptr, channelId)) ||
|
||||
NS_FAILED(chan->Init(uri, caps, nullptr, 0, nullptr, channelId, contentPolicyType)) ||
|
||||
NS_FAILED(chan->SetAllowAltSvc(false)) ||
|
||||
NS_FAILED(chan->SetRedirectMode(nsIHttpChannelInternal::REDIRECT_MODE_ERROR)) ||
|
||||
NS_FAILED(chan->SetLoadInfo(loadInfo)) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue