RESOLVED FIXED 146074
Client may receive began editing callback for already focused text field
https://bugs.webkit.org/show_bug.cgi?id=146074
Summary Client may receive began editing callback for already focused text field
Daniel Bates
Reported 2015-06-17 13:11:35 PDT
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.
Attachments
Patch and unit test (5.24 KB, patch)
2015-06-17 13:30 PDT, Daniel Bates
no flags
Daniel Bates
Comment 1 2015-06-17 13:12:43 PDT
Daniel Bates
Comment 2 2015-06-17 13:30:33 PDT
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.
Daniel Bates
Comment 3 2015-06-17 21:39:39 PDT
Comment on attachment 255032 [details] Patch and unit test Clearing flags on attachment: 255032 Committed r185692: <http://trac.webkit.org/changeset/185692>
Daniel Bates
Comment 4 2015-06-17 21:39:42 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.