To get the direct text API to work for Mail, we need to be able to support calling replaceInTextRange on the web area. That's because the <body> element is not in the AX tree, so VoiceOver ends up calling the HTMLDocument to replace the text
<rdar://problem/59173196>
<rdar://problem/58967407>
Created attachment 389776 [details] Patch
Comment on attachment 389776 [details] Patch Clearing flags on attachment: 389776 Committed r255839: <https://trac.webkit.org/changeset/255839>
All reviewed patches have been landed. Closing bug.