Bug 227397 - Set ContentInset would cause cursor move below keyboard
Summary: Set ContentInset would cause cursor move below keyboard
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: Safari 14
Hardware: All iOS 14
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-25 05:42 PDT by Tiger Guo
Modified: 2021-11-10 22:12 PST (History)
8 users (show)

See Also:


Attachments
Demo project (103.50 KB, application/zip)
2021-06-25 05:42 PDT, Tiger Guo
no flags Details
video to show the bug (904.47 KB, video/mp4)
2021-06-25 05:43 PDT, Tiger Guo
guotenghu: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
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>