In bug 249569, an API tests was written, however while the code was manually checked on a real phone, the test times out on the simulator. To not delay the landing of this feature, I will commit the API test later.
<rdar://problem/104097812>
Pull request: https://github.com/WebKit/WebKit/pull/8513
Committed 258869@main (4ecc989d8169): <https://commits.webkit.org/258869@main> Reviewed commits have been landed. Closing PR #8513 and removing active labels.