This has already been done on iOS in <https://trac.webkit.org/changeset/254376>, and should be done on macOS as well.
<rdar://problem/58491634>
Created attachment 409695 [details] Patch
Thanks for reviewing!
Committed r267738: <https://trac.webkit.org/changeset/267738> All reviewed patches have been landed. Closing bug and clearing flags on attachment 409695 [details].
*** Bug 206097 has been marked as a duplicate of this bug. ***