Bug 133243 - REGRESSION (WebKit2): Keyboard disappears/appears automatically between text boxes
Summary: REGRESSION (WebKit2): Keyboard disappears/appears automatically between text ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Enrica Casucci
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-05-23 16:57 PDT by Enrica Casucci
Modified: 2014-05-23 17:19 PDT (History)
0 users

See Also:


Attachments
Patch (12.68 KB, patch)
2014-05-23 17:02 PDT, Enrica Casucci
benjamin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enrica Casucci 2014-05-23 16:57:35 PDT
Given the asynchronous nature of WebKit2, the keyboard layer can receive requests to dismiss the keyboard and show the keyboard in two different spins of the runloop which causes the keyboard to animate out and in again when moving from one text field to another.

<rdar://problem/16761913>
Comment 1 Enrica Casucci 2014-05-23 17:02:18 PDT
Created attachment 232005 [details]
Patch
Comment 2 Benjamin Poulain 2014-05-23 17:07:26 PDT
Comment on attachment 232005 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=232005&action=review

> Source/WebKit2/ChangeLog:11
> +        We need to ensure that when an element loses focus and another one gets it,
> +        this is handled in one single message in the UI process to avoid seeing
> +        the keyboard animating in and out.

I would also add a paragraph explaining the "block trick".
Comment 3 Enrica Casucci 2014-05-23 17:19:09 PDT
Committed revision 169294.
Comment 4 Enrica Casucci 2014-05-23 17:19:17 PDT
Committed revision 169294.