Bug 173236 - Required UITextInput methods are completely unimplemented in WKWebView
Summary: Required UITextInput methods are completely unimplemented in WKWebView
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-06-11 04:31 PDT by Matt Curtis
Modified: 2017-06-15 23:39 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Curtis 2017-06-11 04:31:47 PDT
Summary:
Problem is as stated in title. WKWebView implements barely any of the methods required for UITextInput conformance, making it unsuitable as a text-interactive responder.  Because of this non-conformance, WKWebView responds incorrectly to queries from the system regarding text state.

Basic functions are missing, such as the ability of the system to query the text input regarding text content of the currently selected range. WKWebView should not have been made available in this state.

Steps to Reproduce:
1. Load content into a WKWebView, editable or non-editable
2. Select text, giving WKWebView's WKContentView focus
2. Attempt to use almost any of the **required** methods of the UITextInput protocol on WKContentView: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInput_Protocol/

Expected Results:
WKWebView's WKContentView properly implements the required methods of the UITextInput protocol.

Actual Results:
WKWebView implements few of the required methods.

Version:
iOS 9, iOS 10

Notes:


Configuration:
iPhone 6 & Playground
Comment 1 Radar WebKit Bug Importer 2017-06-15 20:59:04 PDT
<rdar://problem/32807284>