[Webkit-unassigned] [Bug 221658] New: WKWebView needs to give -scrollView access on macOS

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 9 23:24:10 PST 2021


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

            Bug ID: 221658
           Summary: WKWebView needs to give -scrollView access on macOS
           Product: WebKit
           Version: Safari 14
          Hardware: Mac (Apple Silicon)
                OS: macOS 11
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jonathan at tumult.com

There's no way to properly control the scroll view for a WKWebView on macOS.  iOS has this; why doesn't the Mac?

The workaround is to inject JavaScript code that uses JavaScript APIs to control the scroll view.  This is clunky and error prone.

There are many different reasons for controlling the scroll view, but ultimately it comes down to being able to create an application that is deeply integrated with web content.  Missing APIs like this are reasons folks will stop producing Mac apps (death by a thousand cuts).

I believe WebView did not provide this either, but it was pretty easy to inspect the view hierarchy and find the scrollview.  This is not possible with WKWebView since it seems to be in another process.

-- 
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/20210210/110654f0/attachment.htm>


More information about the webkit-unassigned mailing list