Bug 227397

Summary: Set ContentInset would cause cursor move below keyboard
Product: WebKit Reporter: Tiger Guo <guotenghu>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Major CC: bfulgham, guotenghu, kkinnunen, simon.fraser, thorton, webkit-bug-importer, wenson_hsieh, zalan
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: All   
OS: iOS 14   
Attachments:
Description Flags
Demo project
none
video to show the bug guotenghu: review+

Description Tiger Guo 2021-06-25 05:42:08 PDT
Created attachment 432255 [details]
Demo project

If contentInset.bottom is set for WKWebView.scrollView and keyboard is displayed for a div with contentEditable=true, the cursor would move below the keyboard after pressing enter in a row.  

It's quite serious because it's common to set contentInset for webview. If the bug happenens, user can't see the cursor while typing.
Comment 1 Tiger Guo 2021-06-25 05:43:17 PDT
Created attachment 432256 [details]
video to show the bug
Comment 2 Radar WebKit Bug Importer 2021-07-02 05:43:17 PDT
<rdar://problem/80079443>