WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED MOVED
186333
Selecting a line in a contenteditable in WKWebView breaks scrolling (iOS 11.3 and 11.4)
https://bugs.webkit.org/show_bug.cgi?id=186333
Summary
Selecting a line in a contenteditable in WKWebView breaks scrolling (iOS 11.3...
hongping
Reported
2018-06-05 19:47:50 PDT
Created
attachment 342023
[details]
Project to reproduce the issue To reproduce the bug: 1. unzip and open the project in Xcode 9.4 2. run the app using iOS simulator 11.3 3. click on the text "testing" 4. type about 15 lines or so with multiple words 5. On the last line with multiple words, select the entire line 6. With the line still selected, try to scroll upwards Expected Able to scroll up Actual The scrolling keeps jumping back down, as if to keep the selection in view. Even after removing the selection, scrolling upwards still keeps jumping back down. Screen recording:
https://cl.ly/2e1j1P0D2h0u
Additional details The issue doesn't happen on iOS 11.2, only 11.3 and 11.4 currently. In the attached zip file, the view controller creates a WKWebView instance that loads the following HTML string to construct a contenteditable div. let html = "<div contenteditable=\"true\">Testing</div>"; webView.loadHTMLString(html, baseURL: nil)
Attachments
Project to reproduce the issue
(27.19 KB, application/zip)
2018-06-05 19:47 PDT
,
hongping
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-06-05 19:49:55 PDT
<
rdar://problem/40834726
>
bruno.onlyme
Comment 2
2018-06-15 20:03:46 PDT
I write about this too here
https://stackoverflow.com/questions/50575206/how-restore-smooth-scrolling-after-format-text-in-ios-contenteditable-element
bruno.onlyme
Comment 3
2018-06-24 17:21:38 PDT
Q can anybody tell us what we "call to refresh" standard behaviour?
Simon Fraser (smfr)
Comment 4
2019-04-09 11:09:08 PDT
This is a bug in another framework, not WebKit, and will be fixed in a future OS update.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug