Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dfa497b46a6bac69b4917cb8c90d4698b807b0bb
https://github.com/WebKit/WebKit/commit/dfa497b46a6bac69b4917cb8c90d4698b807b0bb
Author: Wenson Hsieh <[email protected]>
Date: 2026-01-30 (Fri, 30 Jan 2026)
Changed paths:
M Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm
M Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h
M Source/WebKit/UIProcess/mac/PageClientImplMac.mm
M Source/WebKit/WebProcess/WebPage/WebPage.cpp
M Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm
Log Message:
-----------
[macOS] Add support for -[WKWebViewConfiguration
_setBackgroundTextExtractionEnabled:]
https://bugs.webkit.org/show_bug.cgi?id=306664
rdar://169108697
Reviewed by Abrar Rahman Protyasha.
Add macOS support for this web view configuration flag.
Test: TextExtractionTests.ClickInteractionWhileInBackground
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
(-[WKWebViewConfiguration _setBackgroundTextExtractionEnabled:]):
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
* Source/WebKit/UIProcess/mac/PageClientImplMac.mm:
(WebKit::PageClientImpl::isViewVisible):
As long as this flag is set, treat the web view as 'effectively visible' as
long as it's in a
window, even if the window is occluded or hidden.
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::m_isPopup):
* Tools/TestWebKitAPI/Tests/TestWebKitAPI/mac/AppKitSPI.h:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm:
(TestWebKitAPI::TEST(TextExtractionTests, ClickInteractionWhileInBackground)):
Adjust this API test to work on both macOS and iOS.
Canonical link: https://commits.webkit.org/306548@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications