⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 285841 in webkit


Ignore:
Timestamp:
Nov 15, 2021, 5:03:00 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

_AXSCopyPathForAccessibilityBundle is going to be deprecated.
https://bugs.webkit.org/show_bug.cgi?id=233081

Patch by Eric Liang <ericliang@apple.com> on 2021-11-15
Reviewed by Andres Gonzalez.

To support macOS Accessibility v2 runtime, on macOS there are two places where bundles can live. By doing so, _AXSCopyPathForAccessibilityBundle will going to be deprecated because it won’t always return the correct path you would expect.

Source/WebKit:

  • Platform/spi/Cocoa/AccessibilitySupportSPI.h:
  • WebProcess/cocoa/WebProcessCocoa.mm:

(WebKit::webProcessLoaderAccessibilityBundlePath):

Source/WTF:

  • wtf/PlatformHave.h:
Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r285828 r285841  
     12021-11-15  Eric Liang  <ericliang@apple.com>
     2
     3        _AXSCopyPathForAccessibilityBundle is going to be deprecated.
     4        https://bugs.webkit.org/show_bug.cgi?id=233081
     5
     6        Reviewed by Andres Gonzalez.
     7
     8        To support macOS Accessibility v2 runtime, on macOS there are two places where bundles can live. By doing so, `_AXSCopyPathForAccessibilityBundle` will going to be deprecated because it won’t always return the correct path you would expect.
     9
     10        * wtf/PlatformHave.h:
     11
    1122021-11-15  Wenson Hsieh  <wenson_hsieh@apple.com>
    213
  • trunk/Source/WTF/wtf/PlatformHave.h

    r285828 r285841  
    418418#endif
    419419
    420 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000) \
    421     || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 70000) \
    422     || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 140000) \
    423     || (PLATFORM(MACCATALYST) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000)
    424 #define HAVE_ACCESSIBILITY_BUNDLES_PATH 1
    425 #endif
    426 
    427420#if PLATFORM(COCOA)
    428421#define HAVE_CFNETWORK_OVERRIDE_SESSION_COOKIE_ACCEPT_POLICY 1
  • trunk/Source/WebKit/ChangeLog

    r285819 r285841  
     12021-11-15  Eric Liang  <ericliang@apple.com>
     2
     3        _AXSCopyPathForAccessibilityBundle is going to be deprecated.
     4        https://bugs.webkit.org/show_bug.cgi?id=233081
     5
     6        Reviewed by Andres Gonzalez.
     7
     8        To support macOS Accessibility v2 runtime, on macOS there are two places where bundles can live. By doing so, `_AXSCopyPathForAccessibilityBundle` will going to be deprecated because it won’t always return the correct path you would expect.
     9
     10        * Platform/spi/Cocoa/AccessibilitySupportSPI.h:
     11        * WebProcess/cocoa/WebProcessCocoa.mm:
     12        (WebKit::webProcessLoaderAccessibilityBundlePath):
     13
    1142021-11-15  Michael Catanzaro  <mcatanzaro@gnome.org>
    215
  • trunk/Source/WebKit/Platform/spi/Cocoa/AccessibilitySupportSPI.h

    r278745 r285841  
    3939extern Boolean _AXSApplicationAccessibilityEnabled();
    4040extern CFStringRef kAXSApplicationAccessibilityEnabledNotification;
    41 #if HAVE(ACCESSIBILITY_BUNDLES_PATH)
    42 extern CFStringRef _AXSCopyPathForAccessibilityBundle(CFStringRef bundle);
    43 #endif
    4441
    4542#if PLATFORM(IOS_FAMILY)
  • trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm

    r285412 r285841  
    549549static NSString *webProcessLoaderAccessibilityBundlePath()
    550550{
    551 #if HAVE(ACCESSIBILITY_BUNDLES_PATH)
    552     return adoptCF(_AXSCopyPathForAccessibilityBundle(CFSTR("WebProcessLoader"))).bridgingAutorelease();
    553 #else
    554551    NSString *path = (__bridge NSString *)GSSystemRootDirectory();
    555552#if PLATFORM(MACCATALYST)
     
    557554#endif
    558555    return [path stringByAppendingPathComponent:@"System/Library/AccessibilityBundles/WebProcessLoader.axbundle"];
    559 #endif // HAVE(ACCESSIBILITY_BUNDLES_PATH)
    560556}
    561557#endif
Note: See TracChangeset for help on using the changeset viewer.