From 2e2cd2d694a22afad57f53d1b6acc01934b54d7f Mon Sep 17 00:00:00 2001 From: Jens Stutte Date: Fri, 11 Mar 2022 15:42:08 +0000 Subject: [PATCH] Bug 1750525: Do not IPC_FAIL on dispatch failure in Utils::RecvDeleteMe. r=dom-storage-reviewers,janv Differential Revision: https://phabricator.services.mozilla.com/D136591 --- dom/indexedDB/ActorsParent.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dom/indexedDB/ActorsParent.cpp b/dom/indexedDB/ActorsParent.cpp index 013b5f446005..67b0a6894129 100644 --- a/dom/indexedDB/ActorsParent.cpp +++ b/dom/indexedDB/ActorsParent.cpp @@ -21483,10 +21483,8 @@ mozilla::ipc::IPCResult Utils::RecvDeleteMe() { AssertIsOnBackgroundThread(); MOZ_ASSERT(!mActorDestroyed); - IProtocol* mgr = Manager(); - if (!PBackgroundIndexedDBUtilsParent::Send__delete__(this)) { - return IPC_FAIL_NO_REASON(mgr); - } + QM_WARNONLY_TRY(OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))); + return IPC_OK(); }