[Webkit-unassigned] [Bug 231470] New: WKWebView scroll indicator color doesn't match expected when web view is non-opaque

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 8 21:39:04 PDT 2021


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

            Bug ID: 231470
           Summary: WKWebView scroll indicator color doesn't match
                    expected when web view is non-opaque
           Product: WebKit
           Version: WebKit Local Build
          Hardware: iPhone / iPad
                OS: All
            Status: NEW
          Severity: Trivial
          Priority: P2
         Component: Platform
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: me at shadowfacts.net

When a WKWebView on iOS has isOpaque set to NO, the scrollViewBackgroundColor method in WKWebViewIOS.mm short-circuits and always returns transparentBlack. This causes the scroll indicator to always use the black style (set in _updateScrollViewBackground), regardless of the page's background color.

This is easily reproducible by enabling dark mode in the simulator, running MobileMiniBrowser, and visiting a page that has a black background. The scroll indicators are not visible, because they have the black style.

In my (very) limited testing, just removing the !webView.opaque if statement results in the expected behavior in the above example, but I'm not sure if this change has other implications.

-- 
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/20211009/9b9f9071/attachment.htm>


More information about the webkit-unassigned mailing list