Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8ebfc19498318277b3f123b25db9dc3691974ecb
      
https://github.com/WebKit/WebKit/commit/8ebfc19498318277b3f123b25db9dc3691974ecb
  Author: Lily Spiniolas <[email protected]>
  Date:   2026-06-24 (Wed, 24 Jun 2026)

  Changed paths:
    M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h
    M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.mm
    M Source/WebKit/UIProcess/mac/WebViewImpl.mm
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ObscuredContentInsets.mm

  Log Message:
  -----------
  Hard pocket with solid color should not be enabled solely due to page being 
scrolled to top
https://bugs.webkit.org/show_bug.cgi?id=317628
rdar://180066378

Reviewed by Wenson Hsieh.

With liquid glass adjustments, the page being scrolled to the top should no
longer be reason enough to enable a hard pocket with solid color. Remove
the check for relevant build configurations, and guard the new behavior
with a linked on or after check.

Update ObscuredContentInsets.PreferSolidColorHardPocket accordingly.

Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ObscuredContentInsets.mm

* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h:
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.mm:
(WTF::computeSDKAlignedBehaviors):
* Source/WebKit/UIProcess/mac/WebViewImpl.mm:
(WebKit::WebViewImpl::updatePrefersSolidColorHardPocket):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ObscuredContentInsets.mm:
(TestWebKitAPI::TEST(ObscuredContentInsets, PreferSolidColorHardPocket)):

Canonical link: https://commits.webkit.org/315778@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to