Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d6f958d63e3c41e56bd8c818fcf22680bd2e2c73
https://github.com/WebKit/WebKit/commit/d6f958d63e3c41e56bd8c818fcf22680bd2e2c73
Author: Simon Fraser <[email protected]>
Date: 2026-09-20 (Sun, 20 Sep 2026)
Changed paths:
M Configurations/WebKitProjectPaths.xcconfig
M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
M Source/WebCore/dom/Document.cpp
M Source/WebCore/dom/Document.h
M Source/WebCore/page/ChromeClient.h
M Source/WebCore/page/LocalFrameView.cpp
M Source/WebCore/page/Page.cpp
M Source/WebCore/page/Page.h
M Source/WebCore/page/SettingsBase.cpp
M Source/WebCore/page/SettingsBase.h
M Source/WebCore/platform/Logging.h
M Source/WebCore/rendering/RenderView.h
M Source/WebKit/CMakeLists.txt
M Source/WebKit/DerivedSources-input.xcfilelist
M Source/WebKit/DerivedSources.make
M Source/WebKit/Scripts/generate-message-receiver.py
M Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm
M Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h
M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/UIProcess/WebPageProxyInternals.h
M Source/WebKit/WebKit.xcodeproj/project.pbxproj
M Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp
M Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h
M Source/WebKit/WebProcess/WebPage/WebPage.cpp
M Source/WebKit/WebProcess/WebPage/WebPage.h
Log Message:
-----------
[AXCustomColorMode] Lay the groundwork for some AXCustomColorMode appearance
detection
https://bugs.webkit.org/show_bug.cgi?id=324571
rdar://187804459
Reviewed by Richard Robinson.
AXCustomColorMode runs some detection logic at `didReachVisuallyNonEmptyState`
time,
to adjust its behavior, and needs to get reset between page loads, so hook that
up.
Part of that involves some state getting back to the UI process, which requires
new WebPageProxy message that lives in WebKitAdditions, so add the ability to
have
`serialization.in` files in WebKitAdditions via changes to the message receiver
generation code. This state is plumbed through ChromeClient to the view.
Add a log channel.
* Configurations/WebKitProjectPaths.xcconfig:
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::isAXCustomColorModeActive const):
* Source/WebCore/dom/Document.h:
(WebCore::Document::axCustomColorModeControllerIfExists): Expose
AXCustomColorModeController
(WebCore::Document::axCustomColorModeControllerIfExists const):
* Source/WebCore/page/ChromeClient.h:
* Source/WebCore/page/LocalFrameView.cpp:
(WebCore::LocalFrameView::checkAndDispatchDidReachVisuallyNonEmptyState):
(WebCore::LocalFrameView::performPostLayoutTasks):
* Source/WebCore/page/Page.cpp:
(WebCore::m_mediaSessionManagerFactory):
(WebCore::Page::didChangeMainDocument):
* Source/WebCore/page/Page.h:
* Source/WebCore/page/SettingsBase.cpp:
(WebCore::SettingsBase::axCustomColorModeStateChanged):
(WebCore::SettingsBase::axCustomColorModeAppearanceDetectionChanged):
* Source/WebCore/page/SettingsBase.h:
* Source/WebCore/platform/Logging.h:
* Source/WebCore/rendering/RenderView.h:
* Source/WebKit/CMakeLists.txt:
* Source/WebKit/DerivedSources-input.xcfilelist:
* Source/WebKit/DerivedSources.make:
* Source/WebKit/Scripts/generate-message-receiver.py:
(find_additions_fragment):
(splice_additions):
(main):
* Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm:
* Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebPageProxyInternals.h:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp:
* Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
* Source/WebKit/WebProcess/WebPage/WebPage.h:
Canonical link: https://commits.webkit.org/321473@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications