diff --git a/xpcom/base/CycleCollectedJSContext.cpp b/xpcom/base/CycleCollectedJSContext.cpp index d92283fb20..dc41421901 100644 --- a/xpcom/base/CycleCollectedJSContext.cpp +++ b/xpcom/base/CycleCollectedJSContext.cpp @@ -1477,7 +1477,9 @@ CycleCollectedJSContext::AfterProcessMicrotasks() } // Cleanup Indexed Database transactions: // https://html.spec.whatwg.org/multipage/webappapis.html#perform-a-microtask-checkpoint - CleanupIDBTransactions(RecursionDepth()); + if(!mPendingIDBTransactions.IsEmpty()) { + CleanupIDBTransactions(RecursionDepth()); + } } uint32_t