WTF::ThreadAssertion is not useful as most of the code is run with a WorkQueue ThreadAssertion cannot be used with WorkQueues because a WorkQueue might run its runnables in multiple different threads. On Cocoa this happens via thread of a thread pool for Dispatch dispatch queue. We should have an assertion that can assert that the object is manipulated in the expected sequence, where sequence means either work queue or thread.
<rdar://problem/89608226>
Pull request: https://github.com/WebKit/WebKit/pull/4974
Pull request: https://github.com/WebKit/WebKit/pull/5020
Committed 255274@main (8ed46d3dd638): <https://commits.webkit.org/255274@main> Reviewed commits have been landed. Closing PR #5020 and removing active labels.