[Webkit-unassigned] [Bug 186333] New: Selecting a line in a contenteditable in WKWebView breaks scrolling (iOS 11.3 and 11.4)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 5 19:47:50 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=186333

            Bug ID: 186333
           Summary: Selecting a line in a contenteditable in WKWebView
                    breaks scrolling (iOS 11.3 and 11.4)
           Product: WebKit
           Version: Other
          Hardware: iPhone / iPad
                OS: iOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: hongping at quora.com
                CC: wenson_hsieh at apple.com

Created attachment 342023

  --> https://bugs.webkit.org/attachment.cgi?id=342023&action=review

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)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180606/01309de8/attachment.html>


More information about the webkit-unassigned mailing list