Skip to content

Commit

Permalink
Cherry-pick 6e9bfa7. rdar://122118903
Browse files Browse the repository at this point in the history
    [Catalyst] AX server not started in the WebContent process
    https://bugs.webkit.org/show_bug.cgi?id=268887
    rdar://122118903

    Reviewed by Chris Dumez.

    The code to eagerly start the AX server in the WebContent process was only enabled for iOS. We should also enable it on Catalyst.

    * Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:
    (WebKit::webProcessAccessibilityBundlePath):
    (WebKit::registerWithAccessibility):

    Canonical link: https://commits.webkit.org/274214@main

Identifier: 272448.532@safari-7618.1.15.11-branch
  • Loading branch information
pvollan authored and rjepstein committed Feb 8, 2024
1 parent 124302e commit 1678e84
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,6 @@ static void registerWithAccessibility()
if (![[NSBundle bundleWithPath:bundlePath] loadAndReturnError:&error])
LOG_ERROR("Failed to load accessibility bundle at %@: %@", bundlePath, error);

#if !PLATFORM(MACCATALYST)
// This code will eagerly start the in-process AX server.
// This enables us to revoke the Mach bootstrap sandbox extension.
NSString *webProcessAXBundlePath = webProcessAccessibilityBundlePath();
Expand All @@ -723,7 +722,6 @@ static void registerWithAccessibility()
[[bundle principalClass] safeValueForKey:@"accessibilityInitializeBundle"];
else
LOG_ERROR("Failed to load accessibility bundle at %@: %@", webProcessAXBundlePath, error);
#endif // !PLATFORM(MACCATALYST)
#endif
}

Expand Down

0 comments on commit 1678e84

Please sign in to comment.