Bug 190564 - [iOS] Do not hide and show hardware keyboard suggestion bar when focus changes from one field to another
Summary: [iOS] Do not hide and show hardware keyboard suggestion bar when focus change...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Local Build
Hardware: iPhone / iPad iOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar, PlatformOnly
Depends on: 190017
Blocks:
  Show dependency treegraph
 
Reported: 2018-10-14 15:06 PDT by Daniel Bates
Modified: 2019-01-16 18:55 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2018-10-14 15:06:39 PDT
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.
Comment 1 Radar WebKit Bug Importer 2018-10-14 21:54:15 PDT
<rdar://problem/45262366>
Comment 2 Daniel Bates 2018-11-05 12:59:50 PST
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.