iOS: inputmode="none" disables hardware keyboard's globe key
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Jan 2019 20:45:04 +0000 (20:45 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Jan 2019 20:45:04 +0000 (20:45 +0000)
commit1b0e5baf5027352ffe85d48d4d379a09e71185bf
tree767555532b9ad0dbabde7aa790fb91391044a693
parentbdf2b6c13ab1dbd680e67e627632380b93457f36
iOS: inputmode="none" disables hardware keyboard's globe key
https://bugs.webkit.org/show_bug.cgi?id=193811
<rdar://problem/47406553>

Reviewed by Wenson Hsieh.

Source/WebKit:

Removed the support for inputmode="none" for now since we need a new SPI from UIKit
to properly implement this feature some time in the future.

* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _zoomToRevealFocusedElement]):
(-[WKContentView inputView]):
(-[WKContentView requiresAccessoryView]):
(-[WKContentView textInputTraits]):

LayoutTests:

Updated and renamed the test expecting the keyboard to update upon inputmode content attribute changed
to use inputmode="decimal" instead of inputmode="none", and updated another test to expect inputmode="none"
has no effect instead of hiding the keyboard.

* fast/forms/ios/inputmode-change-update-keyboard-expected.txt: Renamed from inputmode-none-removed-expected.txt.
* fast/forms/ios/inputmode-change-update-keyboard.html: Renamed from inputmode-none-removed.html.
* fast/forms/ios/inputmode-none-expected.txt:
* fast/forms/ios/inputmode-none.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/ios/inputmode-change-update-keyboard-expected.txt [moved from LayoutTests/fast/forms/ios/inputmode-none-removed-expected.txt with 70% similarity]
LayoutTests/fast/forms/ios/inputmode-change-update-keyboard.html [moved from LayoutTests/fast/forms/ios/inputmode-none-removed.html with 72% similarity]
LayoutTests/fast/forms/ios/inputmode-none-expected.txt
LayoutTests/fast/forms/ios/inputmode-none.html
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm