Technically, -hasText is already implemented on WKContentView, but it currently always returns a bogus value of YES. Semantically, -hasText should only be YES if the content being edited is represented by a "non-zero-length string".
<rdar://problem/33410373>
Created attachment 322191 [details] Patch
Created attachment 322192 [details] Remove unnecessary UIKit.h import
Comment on attachment 322192 [details] Remove unnecessary UIKit.h import Thanks Tim!
Comment on attachment 322192 [details] Remove unnecessary UIKit.h import Clearing flags on attachment: 322192 Committed r222654: <http://trac.webkit.org/changeset/222654>
All reviewed patches have been landed. Closing bug.
It looks like one of the API tests added here is flaky due to a latent bug. Fixing in https://bugs.webkit.org/show_bug.cgi?id=177698