I'll rewrite the shutdown logic of the xpcom thread to asyncshutdown it. then dispatch will gracefully fail and we will no longer need to do the assertion.
Bug 1648002 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I'll rewrite the shutdown logic of the xpcom thread to [asyncshutdown](https://searchfox.org/mozilla-central/rev/7ec7ee4a9bde171ba195ab46ed6077e4baaef34d/xpcom/threads/nsIThread.idl#116-136) it. then dispatch will gracefully fail and we will no longer need to do the assertion.