Changeset 247864 in webkit


Ignore:
Timestamp:
Jul 26, 2019 10:18:31 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Eric Liang <ericliang@apple.com> 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:
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r247862 r247864  
     12019-07-26  Eric Liang  <ericliang@apple.com>
     2
     3        AX: web process should load correct bundle path for MACCATALYST
     4        https://bugs.webkit.org/show_bug.cgi?id=200122
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Added the path to accessibility bundle for Mac Catalyst.
     9        Added sandbox profile to read accessibility settings.
     10
     11        * WebProcess/cocoa/WebProcessCocoa.mm:
     12        (WebKit::registerWithAccessibility):
     13        * WebProcess/com.apple.WebProcess.sb.in:
     14
    1152019-07-26  Alexander Mikhaylenko  <exalm7659@gmail.com>
    216
  • trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm

    r246892 r247864  
    322322#endif
    323323#if PLATFORM(IOS_FAMILY)
    324     NSString *accessibilityBundlePath = [(NSString *)GSSystemRootDirectory() stringByAppendingString:@"/System/Library/AccessibilityBundles/WebProcessLoader.axbundle"];
     324    NSString *accessibilityBundlePath = (NSString *)GSSystemRootDirectory();
     325#if PLATFORM(MACCATALYST)
     326    accessibilityBundlePath = [accessibilityBundlePath stringByAppendingString:@"System/iOSSupport"];
     327#endif
     328    accessibilityBundlePath = [accessibilityBundlePath stringByAppendingString:@"System/Library/AccessibilityBundles/WebProcessLoader.axbundle"];
    325329    NSError *error = nil;
    326330    if (![[NSBundle bundleWithPath:accessibilityBundlePath] loadAndReturnError:&error])
  • trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

    r246949 r247864  
    482482    (preference-domain
    483483        "kCFPreferencesAnyApplication"
     484        "com.apple.Accessibility"
    484485        "com.apple.ATS"
    485486        "com.apple.CoreGraphics"
Note: See TracChangeset for help on using the changeset viewer.