-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[macOS] Toggling AX preferences does not update form control appearance
https://bugs.webkit.org/show_bug.cgi?id=264170 rdar://117914468 Reviewed by Wenson Hsieh. cfprefsd is blocked in the GPU process. Consequently, any changes to preferences are not automatically reflected to the process. For this reason, there is existing logic for the UI process to notify the child processes of preference changes. Note that AppKit caches the value of some accessibility settings. The WebContent process already works around this by invalidating the cache whenever an accessibility setting is modified. However, the GPU process does not currently use the same logic. Consequently, the AppKit's cache of accessibility settings remains frozen in the GPU process. To fix, ensure the cache is invalidated, by moving logic from `WebProcessCocoa` into `AuxiliaryProcessCocoa`. This approach ensures that all child processes invalidate the relevant cache. * Source/WebCore/PAL/pal/spi/mac/HIServicesSPI.h: * Source/WebKit/Shared/AuxiliaryProcess.h: (WebKit::AuxiliaryProcess::accessibilitySettingsDidChange): * Source/WebKit/Shared/Cocoa/AuxiliaryProcessCocoa.mm: (WebKit::invertColorsPreferenceKey): (WebKit::AuxiliaryProcess::handleAXPreferenceChange): Additionally invalidate the cache when the "Differentiate without color" setting is toggled. (WebKit::handleAXPreferenceChange): Deleted. * Source/WebKit/WebProcess/WebProcess.h: * Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::handlePreferenceChange): (WebKit::WebProcess::accessibilitySettingsDidChange): (WebKit::invertColorsPreferenceKey): Deleted. Canonical link: https://commits.webkit.org/270221@main
- Loading branch information
Showing
5 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters