Bug 1628766 - Check ProcessId for 0 before trying to create an Endpoint using it. r=mixedpuppy

Depends on D70574

Differential Revision: https://phabricator.services.mozilla.com/D70575

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Matt Woodrow 2020-04-10 23:08:36 +00:00
parent b12eb1fc01
commit a4b08b8b7c

View File

@ -7031,6 +7031,10 @@ auto nsHttpChannel::AttachStreamFilter(base::ProcessId aChildProcessId)
return docParent->AttachStreamFilter(aChildProcessId);
}
if (!ProcessId()) {
return ChildEndpointPromise::CreateAndReject(false, __func__);
}
mozilla::ipc::Endpoint<extensions::PStreamFilterParent> parent;
mozilla::ipc::Endpoint<extensions::PStreamFilterChild> child;
nsresult rv = extensions::PStreamFilter::CreateEndpoints(