WebCore::Timer should assert that the web thread lock is held or the web thread is disabled.
Pull request: https://github.com/WebKit/WebKit/pull/31423
See also: Bug 168008: Audit WebCore uses of RunLoop::main for USE(WEB_THREAD) iOS WebKit1 <https://bugs.webkit.org/show_bug.cgi?id=168008> Bug 172390: [iOS]: RunLoop::main().dispatch() needs to take into account USE_WEB_THREAD <https://bugs.webkit.org/show_bug.cgi?id=172390> Bug 233967: Add a version of ThreadAssertions that treats UI and Web thread as the same <https://bugs.webkit.org/show_bug.cgi?id=233967>
This is basically a dupe of this: Bug 185330: [iOS] Add assert to catch improper use of WebCore::Timer in UI Process <https://bugs.webkit.org/show_bug.cgi?id=185330>
Committed 281614@main (a01578c7c53b): <https://commits.webkit.org/281614@main> Reviewed commits have been landed. Closing PR #31423 and removing active labels.
<rdar://problem/132854744>