Skip to content

Commit

Permalink
workaround of microtask cleanup to prevent a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
roytam1 committed Jan 13, 2024
1 parent 80c4f1d commit c75d50a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xpcom/base/CycleCollectedJSContext.cpp
Expand Up @@ -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
Expand Down

0 comments on commit c75d50a

Please sign in to comment.