Title: [247875] trunk/Source/WebKit
- Revision
- 247875
- Author
- [email protected]
- Date
- 2019-07-26 13:52:14 -0700 (Fri, 26 Jul 2019)
Log Message
[iOS] REGRESSION: Keyboard dismisses and reappears when typing 2FA pin on appleid.apple.com
https://bugs.webkit.org/show_bug.cgi?id=200171
<rdar://problem/50245251>
Reviewed by Wenson Hsieh.
Take out an InputViewUpdateDeferrer token (if we don't already have one) to temporarily defer
tearing down the input view (keyboard) before bluring the previously focused element as part
of switching between focused elements. This avoid a noticeable flash caused by UIKit animating
out and animating in the keyboard should the newly focused element require the keyboard. We
only take out the InputViewUpdateDeferrer until we fall off the end of _elementDidFocus: (or
bail early). Once we fall of the end UIKit will update input view UI.
* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _elementDidFocus:userIsInteracting:blurPreviousNode:activityStateChanges:userObject:]):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (247874 => 247875)
--- trunk/Source/WebKit/ChangeLog 2019-07-26 20:46:48 UTC (rev 247874)
+++ trunk/Source/WebKit/ChangeLog 2019-07-26 20:52:14 UTC (rev 247875)
@@ -1,3 +1,21 @@
+2019-07-26 Daniel Bates <[email protected]>
+
+ [iOS] REGRESSION: Keyboard dismisses and reappears when typing 2FA pin on appleid.apple.com
+ https://bugs.webkit.org/show_bug.cgi?id=200171
+ <rdar://problem/50245251>
+
+ Reviewed by Wenson Hsieh.
+
+ Take out an InputViewUpdateDeferrer token (if we don't already have one) to temporarily defer
+ tearing down the input view (keyboard) before bluring the previously focused element as part
+ of switching between focused elements. This avoid a noticeable flash caused by UIKit animating
+ out and animating in the keyboard should the newly focused element require the keyboard. We
+ only take out the InputViewUpdateDeferrer until we fall off the end of _elementDidFocus: (or
+ bail early). Once we fall of the end UIKit will update input view UI.
+
+ * UIProcess/ios/WKContentViewInteraction.mm:
+ (-[WKContentView _elementDidFocus:userIsInteracting:blurPreviousNode:activityStateChanges:userObject:]):
+
2019-07-26 Chris Dumez <[email protected]>
Avoid WebContent process SIGKILL when using kevent()
Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (247874 => 247875)
--- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2019-07-26 20:46:48 UTC (rev 247874)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2019-07-26 20:52:14 UTC (rev 247875)
@@ -5281,8 +5281,13 @@
}
}();
- if (blurPreviousNode)
+ if (blurPreviousNode) {
+ // Defer view updates until the end of this function to avoid a noticeable flash when switching focus
+ // between elements that require the keyboard.
+ if (!inputViewUpdateDeferrer)
+ inputViewUpdateDeferrer = std::make_unique<WebKit::InputViewUpdateDeferrer>(self);
[self _elementDidBlur];
+ }
#if HAVE(PENCILKIT)
if (information.elementType == WebKit::InputType::Drawing)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes