mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1819742 - Directly set up stream according to the IPC stream type in InternalRequest. r=dom-worker-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D171450
This commit is contained in:
parent
5ddfea87da
commit
dff80ae68e
@ -190,14 +190,11 @@ InternalRequest::InternalRequest(const IPCInternalRequest& aIPCRequest)
|
||||
|
||||
const Maybe<BodyStreamVariant>& body = aIPCRequest.body();
|
||||
|
||||
if (!XRE_IsParentProcess()) {
|
||||
if (body) {
|
||||
MOZ_ASSERT(body->type() == BodyStreamVariant::TParentToChildStream);
|
||||
if (body) {
|
||||
if (body->type() == BodyStreamVariant::TParentToChildStream) {
|
||||
mBodyStream = body->get_ParentToChildStream().get_RemoteLazyInputStream();
|
||||
}
|
||||
} else {
|
||||
if (body) {
|
||||
MOZ_ASSERT(body->type() == BodyStreamVariant::TChildToParentStream);
|
||||
if (body->type() == BodyStreamVariant::TChildToParentStream) {
|
||||
mBodyStream =
|
||||
DeserializeIPCStream(body->get_ChildToParentStream().stream());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user