mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00: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
08a57b8a9e
commit
58b1ce9c4b
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