Consider a page with the following markup: [[ <textarea style="width: 500px; height: 500px">So few words to fill such a big space...</textarea> ]] If you call Page::editableElementsInRect() (directly or via -_requestTextInputContextsInRect:completionHandler:) with a rect that is in an empty part of the <textarea> then it will NOT find it. But it should find it. Need to add form control bounds to editable region instead of the bounds of its inner text element.
<rdar://problem/62231067>
Created attachment 398307 [details] Patch
Created attachment 398308 [details] Patch
Just need to rebase results of some tests...
Created attachment 398330 [details] To Land
Committed r261065: <https://trac.webkit.org/changeset/261065>
BTW thanks for the review, Simon!