From bc1da6b5957b07ca4b5328387f402044f47d6afa Mon Sep 17 00:00:00 2001 From: Jens Stutte Date: Fri, 11 Mar 2022 15:42:03 +0000 Subject: [PATCH] Bug 1750525: Do not IPC_FAIL in VersionChangeTransaction::RecvDeleteMe on Send__delete__ failure. r=dom-storage-reviewers,janv Differential Revision: https://phabricator.services.mozilla.com/D136144 --- dom/indexedDB/ActorsParent.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dom/indexedDB/ActorsParent.cpp b/dom/indexedDB/ActorsParent.cpp index d96d47334a4b..821b9b7a2b51 100644 --- a/dom/indexedDB/ActorsParent.cpp +++ b/dom/indexedDB/ActorsParent.cpp @@ -11364,10 +11364,9 @@ mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteMe() { AssertIsOnBackgroundThread(); MOZ_ASSERT(!IsActorDestroyed()); - IProtocol* mgr = Manager(); - if (!PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this)) { - return IPC_FAIL_NO_REASON(mgr); - } + QM_WARNONLY_TRY( + OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))); + return IPC_OK(); }