Changeset 245661 in webkit
- Timestamp:
- May 22, 2019, 5:30:23 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/forms/ios/inputmode-removing-none-expected.txt (added)
-
LayoutTests/fast/forms/ios/inputmode-removing-none.html (added)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r245659 r245661 1 2019-05-22 Ryosuke Niwa <rniwa@webkit.org> 2 3 REGRESSION(r245148): Removing inputmode="none" does not bring up software keyboard 4 https://bugs.webkit.org/show_bug.cgi?id=198141 5 6 Reviewed by Geoffrey Garen. 7 8 Added a regression test. 9 10 * fast/forms/ios/inputmode-removing-none-expected.txt: Added. 11 * fast/forms/ios/inputmode-removing-none.html: Added. 12 1 13 2019-05-22 Simon Fraser <simon.fraser@apple.com> 2 14 -
trunk/Source/WebKit/ChangeLog
r245660 r245661 1 2019-05-22 Ryosuke Niwa <rniwa@webkit.org> 2 3 REGRESSION(r245148): Removing inputmode="none" does not bring up software keyboard 4 https://bugs.webkit.org/show_bug.cgi?id=198141 5 6 Reviewed by Geoffrey Garen. 7 8 r245148 changed _requiresKeyboardWhenFirstResponder to return NO when shouldShowAutomaticKeyboardUI 9 returns NO with regards to software keyboard. This introduced a regression that removing inputmode="none" 10 no longer brings up the software keyboard. Fixed the bug by making it return YES when inputmode="none" 11 is present on an editable element in shouldShowAutomaticKeyboardUI, partially restoring the old behavior. 12 13 * UIProcess/ios/WKContentViewInteraction.mm: 14 (-[WKContentView shouldShowAutomaticKeyboardUI]): 15 (-[WKContentView _shouldShowAutomaticKeyboardUIIgnoringInputMode]): 16 (-[WKContentView _requiresKeyboardWhenFirstResponder]): 17 1 18 2019-05-22 Tim Horton <timothy_horton@apple.com> 2 19 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r245639 r245661 1641 1641 return NO; 1642 1642 1643 return [self _shouldShowAutomaticKeyboardUIIgnoringInputMode]; 1644 } 1645 1646 - (BOOL)_shouldShowAutomaticKeyboardUIIgnoringInputMode 1647 { 1643 1648 switch (_focusedElementInformation.elementType) { 1644 1649 case WebKit::InputType::None: … … 1672 1677 { 1673 1678 // FIXME: We should add the logic to handle keyboard visibility during focus redirects. 1674 return [self shouldShowAutomaticKeyboardUI]1679 return [self _shouldShowAutomaticKeyboardUIIgnoringInputMode] 1675 1680 #if USE(UIKIT_KEYBOARD_ADDITIONS) 1676 1681 || _seenHardwareKeyDownInNonEditableElement
Note:
See TracChangeset
for help on using the changeset viewer.