This test used to consistently fail on Sonoma. <rdar://114334958>
Antti's fix in https://commits.webkit.org/269411@main fixed this issue as well.
Pull request: https://github.com/WebKit/WebKit/pull/19197
Test gardening commit 269434@main (fd1d1a6f4181): <https://commits.webkit.org/269434@main> Reviewed commits have been landed. Closing PR #19197 and removing active labels.