From 500c2ab8d91c464fdb88cc5cc70f5671cd026217 Mon Sep 17 00:00:00 2001 From: roytam1 Date: Thu, 18 Jan 2024 10:16:55 +0800 Subject: [PATCH] Revert "workaround of microtask cleanup to prevent a crash" This reverts commit c75d50addea4f134130f2f2d822aec7f56f4cbd3. --- xpcom/base/CycleCollectedJSContext.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xpcom/base/CycleCollectedJSContext.cpp b/xpcom/base/CycleCollectedJSContext.cpp index dc41421901..d92283fb20 100644 --- a/xpcom/base/CycleCollectedJSContext.cpp +++ b/xpcom/base/CycleCollectedJSContext.cpp @@ -1477,9 +1477,7 @@ CycleCollectedJSContext::AfterProcessMicrotasks() } // Cleanup Indexed Database transactions: // https://html.spec.whatwg.org/multipage/webappapis.html#perform-a-microtask-checkpoint - if(!mPendingIDBTransactions.IsEmpty()) { - CleanupIDBTransactions(RecursionDepth()); - } + CleanupIDBTransactions(RecursionDepth()); } uint32_t