Changeset 285841 in webkit
- Timestamp:
- Nov 15, 2021, 5:03:00 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/wtf/PlatformHave.h (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/Platform/spi/Cocoa/AccessibilitySupportSPI.h (modified) (1 diff)
-
WebKit/WebProcess/cocoa/WebProcessCocoa.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r285828 r285841 1 2021-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 1 12 2021-11-15 Wenson Hsieh <wenson_hsieh@apple.com> 2 13 -
trunk/Source/WTF/wtf/PlatformHave.h
r285828 r285841 418 418 #endif 419 419 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 1425 #endif426 427 420 #if PLATFORM(COCOA) 428 421 #define HAVE_CFNETWORK_OVERRIDE_SESSION_COOKIE_ACCEPT_POLICY 1 -
trunk/Source/WebKit/ChangeLog
r285819 r285841 1 2021-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 1 14 2021-11-15 Michael Catanzaro <mcatanzaro@gnome.org> 2 15 -
trunk/Source/WebKit/Platform/spi/Cocoa/AccessibilitySupportSPI.h
r278745 r285841 39 39 extern Boolean _AXSApplicationAccessibilityEnabled(); 40 40 extern CFStringRef kAXSApplicationAccessibilityEnabledNotification; 41 #if HAVE(ACCESSIBILITY_BUNDLES_PATH)42 extern CFStringRef _AXSCopyPathForAccessibilityBundle(CFStringRef bundle);43 #endif44 41 45 42 #if PLATFORM(IOS_FAMILY) -
trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
r285412 r285841 549 549 static NSString *webProcessLoaderAccessibilityBundlePath() 550 550 { 551 #if HAVE(ACCESSIBILITY_BUNDLES_PATH)552 return adoptCF(_AXSCopyPathForAccessibilityBundle(CFSTR("WebProcessLoader"))).bridgingAutorelease();553 #else554 551 NSString *path = (__bridge NSString *)GSSystemRootDirectory(); 555 552 #if PLATFORM(MACCATALYST) … … 557 554 #endif 558 555 return [path stringByAppendingPathComponent:@"System/Library/AccessibilityBundles/WebProcessLoader.axbundle"]; 559 #endif // HAVE(ACCESSIBILITY_BUNDLES_PATH)560 556 } 561 557 #endif
Note:
See TracChangeset
for help on using the changeset viewer.