Bug 190564
Summary: | [iOS] Do not hide and show hardware keyboard suggestion bar when focus changes from one field to another | ||
---|---|---|---|
Product: | WebKit | Reporter: | Daniel Bates <dbates> |
Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | webkit-bug-importer, wenson_hsieh |
Priority: | P2 | Keywords: | InRadar, PlatformOnly |
Version: | WebKit Local Build | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 12 | ||
Bug Depends on: | 190017 | ||
Bug Blocks: |
Daniel Bates
It is annoying to see the hiding and showing of the keyboard suggestion bar when a page programmatically focuses a text field while a person is currently focused in a text field. We should look to see if we can detect such focus changes and avoid this.
Following <https://trac.webkit.org/changeset/236619/> (bug #190017) we now allow a page to programmatically focus a text field on iOS when a hardware keyboard is attached.
You can observe this annoyance by performing the following steps with a build of iOS WebKit at r236619 or later and with a hardware keyboard attached:
1. Visit <https://iCloud.com>.
2. Tap the share sheet. Then tap Request Desktoo Site.
3. Once the page loads and the username field is focused, enter your username.
4. Press the return key on the keyboard.
Then the keyboard suggestion bar hides momentarily before appearing again as the password field is now focused.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/45262366>
Daniel Bates
iCloud.com is explicitly calling blur() on the username field and calling focus() on the password field. As opposed to just calling focus() on the password field. The former causes us to hide and show the keyboard suggestion bar. The latter would not.