⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 245661 in webkit


Ignore:
Timestamp:
May 22, 2019, 5:30:23 PM (7 years ago)
Author:
rniwa@webkit.org
Message:

REGRESSION(r245148): Removing inputmode="none" does not bring up software keyboard
https://bugs.webkit.org/show_bug.cgi?id=198141

Reviewed by Geoffrey Garen.

Source/WebKit:

r245148 changed _requiresKeyboardWhenFirstResponder to return NO when shouldShowAutomaticKeyboardUI
returns NO with regards to software keyboard. This introduced a regression that removing inputmode="none"
no longer brings up the software keyboard. Fixed the bug by making it return YES when inputmode="none"
is present on an editable element in shouldShowAutomaticKeyboardUI, partially restoring the old behavior.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView shouldShowAutomaticKeyboardUI]):
(-[WKContentView _shouldShowAutomaticKeyboardUIIgnoringInputMode]):
(-[WKContentView _requiresKeyboardWhenFirstResponder]):

LayoutTests:

Added a regression test.

  • fast/forms/ios/inputmode-removing-none-expected.txt: Added.
  • fast/forms/ios/inputmode-removing-none.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r245659 r245661  
     12019-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
    1132019-05-22  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/Source/WebKit/ChangeLog

    r245660 r245661  
     12019-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
    1182019-05-22  Tim Horton  <timothy_horton@apple.com>
    219
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r245639 r245661  
    16411641        return NO;
    16421642
     1643    return [self _shouldShowAutomaticKeyboardUIIgnoringInputMode];
     1644}
     1645
     1646- (BOOL)_shouldShowAutomaticKeyboardUIIgnoringInputMode
     1647{
    16431648    switch (_focusedElementInformation.elementType) {
    16441649    case WebKit::InputType::None:
     
    16721677{
    16731678    // FIXME: We should add the logic to handle keyboard visibility during focus redirects.
    1674     return [self shouldShowAutomaticKeyboardUI]
     1679    return [self _shouldShowAutomaticKeyboardUIIgnoringInputMode]
    16751680#if USE(UIKIT_KEYBOARD_ADDITIONS)
    16761681        || _seenHardwareKeyDownInNonEditableElement
Note: See TracChangeset for help on using the changeset viewer.