diff --git a/xpcom/threads/ThreadEventTarget.cpp b/xpcom/threads/ThreadEventTarget.cpp index d5df2efda12d..17844d488687 100644 --- a/xpcom/threads/ThreadEventTarget.cpp +++ b/xpcom/threads/ThreadEventTarget.cpp @@ -73,7 +73,8 @@ ThreadEventTarget::Dispatch(already_AddRefed aEvent, } NS_ASSERTION(!gXPCOMThreadsShutDownNotified || mIsMainThread || - PR_GetCurrentThread() == mThread, + PR_GetCurrentThread() == mThread || + (aFlags & NS_DISPATCH_IGNORE_BLOCK_DISPATCH), "Dispatch to non-main thread after xpcom-shutdown-threads"); if (mBlockDispatch && !(aFlags & NS_DISPATCH_IGNORE_BLOCK_DISPATCH)) {