Title: [278412] trunk/Source/WebKit
Revision
278412
Author
[email protected]
Date
2021-06-03 11:04:30 -0700 (Thu, 03 Jun 2021)

Log Message

AX: macOS WebContent can't read prefs from com.apple.Accessibility
https://bugs.webkit.org/show_bug.cgi?id=226528

Reviewed by Per Arne Vollan.

Some accessibility preferences on macOS use libAccessibility.
WebContent should process these on iOS & macOS.

* WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::setPreferenceValue):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (278411 => 278412)


--- trunk/Source/WebKit/ChangeLog	2021-06-03 17:53:13 UTC (rev 278411)
+++ trunk/Source/WebKit/ChangeLog	2021-06-03 18:04:30 UTC (rev 278412)
@@ -1,3 +1,16 @@
+2021-06-03  Chris Fleizach  <[email protected]>
+
+        AX: macOS WebContent can't read prefs from com.apple.Accessibility
+        https://bugs.webkit.org/show_bug.cgi?id=226528
+
+        Reviewed by Per Arne Vollan.
+
+        Some accessibility preferences on macOS use libAccessibility. 
+        WebContent should process these on iOS & macOS.
+
+        * WebProcess/cocoa/WebProcessCocoa.mm:
+        (WebKit::setPreferenceValue):
+
 2021-06-03  Chris Dumez  <[email protected]>
 
         StorageArea should be able to send its IPC directly from the background thread

Modified: trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (278411 => 278412)


--- trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm	2021-06-03 17:53:13 UTC (rev 278411)
+++ trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm	2021-06-03 18:04:30 UTC (rev 278412)
@@ -102,6 +102,10 @@
 #import <wtf/cocoa/RuntimeApplicationChecksCocoa.h>
 #import <wtf/cocoa/VectorCocoa.h>
 
+#if ENABLE(CFPREFS_DIRECT_MODE)
+#import "AccessibilitySupportSPI.h"
+#endif
+
 #if ENABLE(REMOTE_INSPECTOR)
 #import <_javascript_Core/RemoteInspector.h>
 #endif
@@ -112,7 +116,6 @@
 #endif
 
 #if PLATFORM(IOS_FAMILY)
-#import "AccessibilitySupportSPI.h"
 #import "RunningBoardServicesSPI.h"
 #import "UserInterfaceIdiom.h"
 #import "WKAccessibilityWebPageObjectIOS.h"
@@ -170,7 +173,7 @@
 SOFT_LINK_FUNCTION_MAY_FAIL_FOR_SOURCE(WebKit, HIServices, _AXSetAuditTokenIsAuthenticatedCallback, void, (AXAuditTokenIsAuthenticatedCallback callback), (callback))
 #endif
 
-#if PLATFORM(IOS_FAMILY)
+#if ENABLE(CFPREFS_DIRECT_MODE)
 SOFT_LINK_LIBRARY(libAccessibility)
 SOFT_LINK_OPTIONAL(libAccessibility, _AXSUpdateWebAccessibilitySettings, void, (), ());
 #endif
@@ -1126,12 +1129,10 @@
         WTF::languageDidChange();
     }
 
-#if PLATFORM(IOS_FAMILY)
     if (domain == String(kAXSAccessibilityPreferenceDomain)) {
         if (_AXSUpdateWebAccessibilitySettingsPtr())
             _AXSUpdateWebAccessibilitySettingsPtr()();
     }
-#endif
     
 #if USE(APPKIT)
     auto cfKey = key.createCFString();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to