Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 83f810390d84178fc664f6cd748df401328a91b6
https://github.com/WebKit/WebKit/commit/83f810390d84178fc664f6cd748df401328a91b6
Author: Lily Spiniolas <[email protected]>
Date: 2026-10-10 (Sat, 10 Oct 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/API/Cocoa/WKWebViewTesting.mm
M Source/WebKit/UIProcess/mac/WebViewImpl.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ObscuredContentInsets.mm
Log Message:
-----------
System background color should not extend under top or bottom obscured
content insets
https://bugs.webkit.org/show_bug.cgi?id=327043
rdar://188210655
Reviewed by Abrar Rahman Protyasha and Wenson Hsieh.
Remove the top system background color extensions for iOS, and reintroduce
the behavior of setting `prefersSolidColorHardPocket` to true on macOS when
the page is scrolled to the top of the page so that content does not display
behind the top obscured content inset until the user scrolls.
Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ObscuredContentInsets.mm
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _updateFixedColorExtensionViews]):
(-[WKWebView _updateFixedColorExtensionViewFrames]):
(-[WKWebView _updateAppearanceForSystemBackgroundColorExtensionViews]):
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm:
(-[WKWebView _cancelFixedColorExtensionFadeAnimationsForTesting]):
* Source/WebKit/UIProcess/mac/WebViewImpl.mm:
(WebKit::WebViewImpl::updatePrefersSolidColorHardPocket):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ObscuredContentInsets.mm:
(TestWebKitAPI::HorizontalBannerOverlays::assertTopColorExtension):
Canonical link: https://commits.webkit.org/323309@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications