If there's an async scrolling request the compositing thread might be busy just waiting for the painting threads. We can wait for them in the main thread, which is already expected to be blocked painting.
Pull request: https://github.com/WebKit/WebKit/pull/19884
Committed 270388@main (2bf118e5bf78): <https://commits.webkit.org/270388@main> Reviewed commits have been landed. Closing PR #19884 and removing active labels.
This introduced flakyness in 2 tests at least. See bug 264700.
Re-opened since this is blocked by bug 266466
Pull request: https://github.com/WebKit/WebKit/pull/26192