<rdar://113318934> waitForDidUpdateActivityState sends a didRefreshDisplay message to the web content process (if one was pending) to ensure that the web process knows it can commit a new layer tree. If the incoming CommitLayerTree message didn't include the right activity state change, then we wait again, but don't send a new didRefreshDisplay, and we wait for a message that isn't coming.
Pull request: https://github.com/WebKit/WebKit/pull/19182
Committed 269486@main (ee5c4b70a09c): <https://commits.webkit.org/269486@main> Reviewed commits have been landed. Closing PR #19182 and removing active labels.