An embedding client should only receive a began editing callback when a text field is newly focused. That is, subsequently focusing the text field by dispatching a programmatic DOM focus event at it should not dispatch a began editing callback.
<rdar://problem/21293562>
Created attachment 255032 [details] Patch and unit test We should look to further clean up TextFieldInputType::forwardEvent(), including moving the logic to update the caps lock indicator state from TextFieldInputType::forwardEvent() to TextFieldInputType::handle{Blur, Focus}Event(). I suggest we do such clean up in another bug.
Comment on attachment 255032 [details] Patch and unit test Clearing flags on attachment: 255032 Committed r185692: <http://trac.webkit.org/changeset/185692>
All reviewed patches have been landed. Closing bug.