Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 847baf682a730be72f88a9a50bacf8fda60a6c52
https://github.com/WebKit/WebKit/commit/847baf682a730be72f88a9a50bacf8fda60a6c52
Author: Lily Spiniolas <[email protected]>
Date: 2026-03-18 (Wed, 18 Mar 2026)
Changed paths:
M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h
M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/SampledPageTopColor.mm
Log Message:
-----------
[iOS] Top scroll stretch color should match top color extension when present
https://bugs.webkit.org/show_bug.cgi?id=310151
rdar://172789935
Reviewed by Abrar Rahman Protyasha.
The top scroll stretch color should always match the color
displayed behind the top obscured content inset. When a color
extension is present, it will be displayed in this region. To
ensure the colors match, we no longer compare the fixed header
color (used for the extension) to the sampled page top color
as we should behave the same regardless of how similar or
dissimilar the two are.
Tests:
SampledPageTopColor.TopColorExtensionGrowsDuringRubberBandingWithoutSampledPageTopColor
SampledPageTopColor.TopColorExtensionHeightIncreasesWithRubberBandAmount
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _obscuredInsetsForFixedColorExtension]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/SampledPageTopColor.mm:
(TestWebKitAPI::TEST(SampledPageTopColor,
TopColorExtensionGrowsDuringRubberBandingWithoutSampledPageTopColor)):
(TestWebKitAPI::TEST(SampledPageTopColor,
TopColorExtensionHeightIncreasesWithRubberBandAmount)):
Canonical link: https://commits.webkit.org/309491@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications