Bug 133243

Summary: REGRESSION (WebKit2): Keyboard disappears/appears automatically between text boxes
Product: WebKit Reporter: Enrica Casucci <enrica>
Component: WebKit2Assignee: Enrica Casucci <enrica>
Status: RESOLVED FIXED    
Severity: Normal Keywords: InRadar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: Unspecified   
Attachments:
Description Flags
Patch benjamin: review+

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.