Bug 1770558 - Ensure proper handling of returned promise r=alwu

Differential Revision: https://phabricator.services.mozilla.com/D147158
This commit is contained in:
Alexandre Lissy 2022-05-26 01:03:50 +00:00
Родитель 50ec2e051f
Коммит 43ff7d79dd
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -532,7 +532,8 @@ RemoteDecoderManagerChild::LaunchUtilityProcessIfNeeded() {
managerThread, __func__,
[](ipc::PBackgroundChild::
EnsureUtilityProcessAndCreateBridgePromise::
ResolveOrRejectValue&& aResult) {
ResolveOrRejectValue&& aResult)
-> RefPtr<GenericNonExclusivePromise> {
nsCOMPtr<nsISerialEventTarget> managerThread = GetManagerThread();
if (!managerThread || aResult.IsReject()) {
// The parent process died or we got shutdown