Title: [247864] trunk/Source/WebKit
Revision
247864
Author
[email protected]
Date
2019-07-26 10:18:31 -0700 (Fri, 26 Jul 2019)

Log Message

AX: web process should load correct bundle path for MACCATALYST
https://bugs.webkit.org/show_bug.cgi?id=200122

Patch by Eric Liang <[email protected]> on 2019-07-26
Reviewed by Brent Fulgham.

Added the path to accessibility bundle for Mac Catalyst.
Added sandbox profile to read accessibility settings.

* WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::registerWithAccessibility):
* WebProcess/com.apple.WebProcess.sb.in:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (247863 => 247864)


--- trunk/Source/WebKit/ChangeLog	2019-07-26 16:08:15 UTC (rev 247863)
+++ trunk/Source/WebKit/ChangeLog	2019-07-26 17:18:31 UTC (rev 247864)
@@ -1,3 +1,17 @@
+2019-07-26  Eric Liang  <[email protected]>
+
+        AX: web process should load correct bundle path for MACCATALYST
+        https://bugs.webkit.org/show_bug.cgi?id=200122
+
+        Reviewed by Brent Fulgham.
+
+        Added the path to accessibility bundle for Mac Catalyst.
+        Added sandbox profile to read accessibility settings.
+
+        * WebProcess/cocoa/WebProcessCocoa.mm:
+        (WebKit::registerWithAccessibility):
+        * WebProcess/com.apple.WebProcess.sb.in:
+
 2019-07-26  Alexander Mikhaylenko  <[email protected]>
 
         REGRESSION(r246496): [GTK] Tapping the web view scrolls up a bit

Modified: trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (247863 => 247864)


--- trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm	2019-07-26 16:08:15 UTC (rev 247863)
+++ trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm	2019-07-26 17:18:31 UTC (rev 247864)
@@ -321,7 +321,11 @@
     [NSAccessibilityRemoteUIElement setRemoteUIApp:YES];
 #endif
 #if PLATFORM(IOS_FAMILY)
-    NSString *accessibilityBundlePath = [(NSString *)GSSystemRootDirectory() stringByAppendingString:@"/System/Library/AccessibilityBundles/WebProcessLoader.axbundle"];
+    NSString *accessibilityBundlePath = (NSString *)GSSystemRootDirectory();
+#if PLATFORM(MACCATALYST)
+    accessibilityBundlePath = [accessibilityBundlePath stringByAppendingString:@"System/iOSSupport"];
+#endif
+    accessibilityBundlePath = [accessibilityBundlePath stringByAppendingString:@"System/Library/AccessibilityBundles/WebProcessLoader.axbundle"];
     NSError *error = nil;
     if (![[NSBundle bundleWithPath:accessibilityBundlePath] loadAndReturnError:&error])
         LOG_ERROR("Failed to load accessibility bundle at %@: %@", accessibilityBundlePath, error);

Modified: trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in (247863 => 247864)


--- trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in	2019-07-26 16:08:15 UTC (rev 247863)
+++ trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in	2019-07-26 17:18:31 UTC (rev 247864)
@@ -481,6 +481,7 @@
 (allow user-preference-read
     (preference-domain
         "kCFPreferencesAnyApplication"
+        "com.apple.Accessibility"
         "com.apple.ATS"
         "com.apple.CoreGraphics"
         "com.apple.DownloadAssessment"
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to