Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 79c1efa2cd30fc9bed6a5e8af5cb17022e1c717e
      
https://github.com/WebKit/WebKit/commit/79c1efa2cd30fc9bed6a5e8af5cb17022e1c717e
  Author: Lily Spiniolas <[email protected]>
  Date:   2026-07-27 (Mon, 27 Jul 2026)

  Changed paths:
    M Source/WebKit/UIProcess/mac/WebViewImpl.mm
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ObscuredContentInsets.mm

  Log Message:
  -----------
  Scroll pocket may obscure web content in fullscreen mode
https://bugs.webkit.org/show_bug.cgi?id=320377
rdar://181328806

Reviewed by Tim Horton.

In WebViewImpl::updateScrollPocket(), a scroll pocket is created when
`needsTopViewForFullScreenTitlebar` is true. In certain cases, in fullscreen
applications, the scroll pocket of a webview in an NSScrollView may have a 
non-zero
height and obscure the web content. Speculatively fix this bug by making
`needsTopViewForFullScreenTitlebar` false when the webview is not the document 
view
of an NSScrollView.

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

* Source/WebKit/UIProcess/mac/WebViewImpl.mm:
(WebKit::WebViewImpl::updateScrollPocket):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ObscuredContentInsets.mm:
(TestWebKitAPI::TEST(ObscuredContentInsets, 
ScrollPocketIgnoresFullScreenTitlebarHeightForSubscrollers)):

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



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

Reply via email to