зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1606901 - P2. Abort should we failed at creating IPCStreamSource. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D61367 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ea6b9ad701
Коммит
887d964fff
|
@ -114,11 +114,16 @@ void SerializeInputStreamAsPipeInternal(nsIInputStream* aInputStream,
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
MOZ_DIAGNOSTIC_ASSERT(asyncStream);
|
||||
|
||||
aParams = IPCRemoteStreamParams(
|
||||
aDelayedStart, IPCStreamSource::Create(asyncStream, aManager), length);
|
||||
auto* streamSource = IPCStreamSource::Create(asyncStream, aManager);
|
||||
if (NS_WARN_IF(!streamSource)) {
|
||||
// Failed to create IPCStreamSource, which would cause a failure should we
|
||||
// attempt to serialize it later. So abort now.
|
||||
return;
|
||||
}
|
||||
|
||||
aParams = IPCRemoteStreamParams(aDelayedStart, streamSource, length);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Загрузка…
Ссылка в новой задаче