mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1133763 - Part 2: Transfer the security info associated with an InternalResponse across the IPC layer; r=bkelly
This commit is contained in:
parent
0f129374d0
commit
33f9e79fa1
1
dom/cache/PCacheTypes.ipdlh
vendored
1
dom/cache/PCacheTypes.ipdlh
vendored
@ -69,6 +69,7 @@ struct PCacheResponse
|
||||
PHeadersEntry[] headers;
|
||||
HeadersGuardEnum headersGuard;
|
||||
PCacheReadStreamOrVoid body;
|
||||
nsCString securityInfo;
|
||||
};
|
||||
|
||||
union PCacheResponseOrVoid
|
||||
|
3
dom/cache/TypeUtils.cpp
vendored
3
dom/cache/TypeUtils.cpp
vendored
@ -233,6 +233,7 @@ TypeUtils::ToPCacheResponseWithoutBody(PCacheResponse& aOut,
|
||||
MOZ_ASSERT(headers);
|
||||
headers->GetPHeaders(aOut.headers());
|
||||
aOut.headersGuard() = headers->Guard();
|
||||
aOut.securityInfo() = aIn.GetSecurityInfo();
|
||||
}
|
||||
|
||||
void
|
||||
@ -318,6 +319,8 @@ TypeUtils::ToResponse(const PCacheResponse& aIn)
|
||||
ir->Headers()->Fill(*internalHeaders, result);
|
||||
MOZ_ASSERT(!result.Failed());
|
||||
|
||||
ir->SetSecurityInfo(aIn.securityInfo());
|
||||
|
||||
nsCOMPtr<nsIInputStream> stream = ReadStream::Create(aIn.body());
|
||||
ir->SetBody(stream);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user