зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1770558 - Ensure proper handling of returned promise r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D147158
This commit is contained in:
Родитель
50ec2e051f
Коммит
43ff7d79dd
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче