Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d9fcbdfe5170eef3c5b3b9e928519ba4820399fe
https://github.com/WebKit/WebKit/commit/d9fcbdfe5170eef3c5b3b9e928519ba4820399fe
Author: Lily Spiniolas <[email protected]>
Date: 2026-03-20 (Fri, 20 Mar 2026)
Changed paths:
M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h
M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
M Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h
M Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.mm
M Source/WebKit/UIProcess/ios/WKScrollView.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/SampledPageTopColor.mm
Log Message:
-----------
[iOS/visionOS] WebKit should manage the appearance of `UIRefreshControl`s
attached to WKScrollView
https://bugs.webkit.org/show_bug.cgi?id=309439
rdar://172010803
Reviewed by Abrar Rahman Protyasha and Wenson Hsieh.
WebKit will now update the user interface style of any UIRefreshControl
attached to a WKScrollView. The determination of whether to use the light
or dark style is based upon the brightness of the color displayed underneath
the control (which will either be the sampled fixed position content color,
underPageBackgroundColor, or the background color of the scroll view).
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _updateFixedContainerEdges:]):
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h:
* Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.mm:
(WebKit::PageClientImplCocoa::underPageBackgroundColorDidChange):
* Source/WebKit/UIProcess/ios/WKScrollView.mm:
(-[WKScrollView setBackgroundColor:]):
(-[WKScrollView _setBackgroundColorInternal:]):
(-[WKScrollView setRefreshControl:]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/SampledPageTopColor.mm:
Canonical link: https://commits.webkit.org/309632@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications