Changeset 245690 in webkit
- Timestamp:
- May 23, 2019, 10:01:00 AM (7 years ago)
- Location:
- branches/safari-608.1.24.20-branch
- 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
-
branches/safari-608.1.24.20-branch/LayoutTests/ChangeLog
r245632 r245690 1 2019-05-23 Kocsen Chung <kocsen_chung@apple.com> 2 3 Cherry-pick r245661. rdar://problem/50613388 4 5 REGRESSION(r245148): Removing inputmode="none" does not bring up software keyboard 6 https://bugs.webkit.org/show_bug.cgi?id=198141 7 8 Reviewed by Geoffrey Garen. 9 10 Source/WebKit: 11 12 r245148 changed _requiresKeyboardWhenFirstResponder to return NO when shouldShowAutomaticKeyboardUI 13 returns NO with regards to software keyboard. This introduced a regression that removing inputmode="none" 14 no longer brings up the software keyboard. Fixed the bug by making it return YES when inputmode="none" 15 is present on an editable element in shouldShowAutomaticKeyboardUI, partially restoring the old behavior. 16 17 * UIProcess/ios/WKContentViewInteraction.mm: 18 (-[WKContentView shouldShowAutomaticKeyboardUI]): 19 (-[WKContentView _shouldShowAutomaticKeyboardUIIgnoringInputMode]): 20 (-[WKContentView _requiresKeyboardWhenFirstResponder]): 21 22 LayoutTests: 23 24 Added a regression test. 25 26 * fast/forms/ios/inputmode-removing-none-expected.txt: Added. 27 * fast/forms/ios/inputmode-removing-none.html: Added. 28 29 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245661 268f45cc-cd09-0410-ab3c-d52691b4dbfc 30 31 2019-05-22 Ryosuke Niwa <rniwa@webkit.org> 32 33 REGRESSION(r245148): Removing inputmode="none" does not bring up software keyboard 34 https://bugs.webkit.org/show_bug.cgi?id=198141 35 36 Reviewed by Geoffrey Garen. 37 38 Added a regression test. 39 40 * fast/forms/ios/inputmode-removing-none-expected.txt: Added. 41 * fast/forms/ios/inputmode-removing-none.html: Added. 42 1 43 2019-05-22 Kocsen Chung <kocsen_chung@apple.com> 2 44 -
branches/safari-608.1.24.20-branch/Source/WebKit/ChangeLog
r245558 r245690 1 2019-05-23 Kocsen Chung <kocsen_chung@apple.com> 2 3 Cherry-pick r245661. rdar://problem/50613388 4 5 REGRESSION(r245148): Removing inputmode="none" does not bring up software keyboard 6 https://bugs.webkit.org/show_bug.cgi?id=198141 7 8 Reviewed by Geoffrey Garen. 9 10 Source/WebKit: 11 12 r245148 changed _requiresKeyboardWhenFirstResponder to return NO when shouldShowAutomaticKeyboardUI 13 returns NO with regards to software keyboard. This introduced a regression that removing inputmode="none" 14 no longer brings up the software keyboard. Fixed the bug by making it return YES when inputmode="none" 15 is present on an editable element in shouldShowAutomaticKeyboardUI, partially restoring the old behavior. 16 17 * UIProcess/ios/WKContentViewInteraction.mm: 18 (-[WKContentView shouldShowAutomaticKeyboardUI]): 19 (-[WKContentView _shouldShowAutomaticKeyboardUIIgnoringInputMode]): 20 (-[WKContentView _requiresKeyboardWhenFirstResponder]): 21 22 LayoutTests: 23 24 Added a regression test. 25 26 * fast/forms/ios/inputmode-removing-none-expected.txt: Added. 27 * fast/forms/ios/inputmode-removing-none.html: Added. 28 29 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245661 268f45cc-cd09-0410-ab3c-d52691b4dbfc 30 31 2019-05-22 Ryosuke Niwa <rniwa@webkit.org> 32 33 REGRESSION(r245148): Removing inputmode="none" does not bring up software keyboard 34 https://bugs.webkit.org/show_bug.cgi?id=198141 35 36 Reviewed by Geoffrey Garen. 37 38 r245148 changed _requiresKeyboardWhenFirstResponder to return NO when shouldShowAutomaticKeyboardUI 39 returns NO with regards to software keyboard. This introduced a regression that removing inputmode="none" 40 no longer brings up the software keyboard. Fixed the bug by making it return YES when inputmode="none" 41 is present on an editable element in shouldShowAutomaticKeyboardUI, partially restoring the old behavior. 42 43 * UIProcess/ios/WKContentViewInteraction.mm: 44 (-[WKContentView shouldShowAutomaticKeyboardUI]): 45 (-[WKContentView _shouldShowAutomaticKeyboardUIIgnoringInputMode]): 46 (-[WKContentView _requiresKeyboardWhenFirstResponder]): 47 1 48 2019-05-20 Kocsen Chung <kocsen_chung@apple.com> 2 49 -
branches/safari-608.1.24.20-branch/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r245227 r245690 1635 1635 return NO; 1636 1636 1637 return [self _shouldShowAutomaticKeyboardUIIgnoringInputMode]; 1638 } 1639 1640 - (BOOL)_shouldShowAutomaticKeyboardUIIgnoringInputMode 1641 { 1637 1642 switch (_focusedElementInformation.elementType) { 1638 1643 case WebKit::InputType::None: … … 1665 1670 - (BOOL)_requiresKeyboardWhenFirstResponder 1666 1671 { 1667 // FIXME: Only create keyboard if [self shouldShowAutomaticKeyboardUI] returns YES or1668 // on first hardware keydown in a non-editable element. See <https://bugs.webkit.org/show_bug.cgi?id=197746>.1672 // FIXME: We should add the logic to handle keyboard visibility during focus redirects. 1673 return [self _shouldShowAutomaticKeyboardUIIgnoringInputMode] 1669 1674 #if USE(UIKIT_KEYBOARD_ADDITIONS) 1670 1675 if (GSEventIsHardwareKeyboardAttached())
Note:
See TracChangeset
for help on using the changeset viewer.