Bug 146074 - Client may receive began editing callback for already focused text field
Summary: Client may receive began editing callback for already focused text field
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Daniel Bates
Keywords: InRadar
Depends on:
Reported: 2015-06-17 13:11 PDT by Daniel Bates
Modified: 2015-06-17 21:39 PDT (History)
3 users (show)

See Also:

Patch and unit test (5.24 KB, patch)
2015-06-17 13:30 PDT, Daniel Bates
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 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.
Comment 1 Daniel Bates 2015-06-17 13:12:43 PDT
Comment 2 Daniel Bates 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.
Comment 3 Daniel Bates 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>
Comment 4 Daniel Bates 2015-06-17 21:39:42 PDT
All reviewed patches have been landed.  Closing bug.