Changeset 291006 in webkit


Ignore:
Timestamp:
Mar 8, 2022 12:46:24 PM (2 years ago)
Author:
pvollan@apple.com
Message:

The accessibility library should be soft linked optionally
https://bugs.webkit.org/show_bug.cgi?id=236513

Reviewed by Geoffrey Garen.

The accessibility library should be soft linked optionally, since it is not always present.

  • Shared/Cocoa/AuxiliaryProcessCocoa.mm:

(WebKit::handleAXPreferenceChange):
(WebKit::AuxiliaryProcess::handlePreferenceChange):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r291003 r291006  
     12022-03-08  Per Arne Vollan  <pvollan@apple.com>
     2
     3        The accessibility library should be soft linked optionally
     4        https://bugs.webkit.org/show_bug.cgi?id=236513
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        The accessibility library should be soft linked optionally, since it is not always present.
     9
     10        * Shared/Cocoa/AuxiliaryProcessCocoa.mm:
     11        (WebKit::handleAXPreferenceChange):
     12        (WebKit::AuxiliaryProcess::handlePreferenceChange):
     13
    1142022-03-08  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebKit/Shared/Cocoa/AuxiliaryProcessCocoa.mm

    r287720 r291006  
    4747
    4848#if HAVE(UPDATE_WEB_ACCESSIBILITY_SETTINGS) && ENABLE(CFPREFS_DIRECT_MODE)
    49 SOFT_LINK_LIBRARY(libAccessibility)
     49SOFT_LINK_LIBRARY_OPTIONAL(libAccessibility)
    5050SOFT_LINK_OPTIONAL(libAccessibility, _AXSUpdateWebAccessibilitySettings, void, (), ());
    5151#endif
     
    198198#endif
    199199
    200 void AuxiliaryProcess::handlePreferenceChange(const String& domain, const String& key, id value)
    201 {
     200static void handleAXPreferenceChange(const String& domain, const String& key, id value)
     201{
     202#if HAVE(UPDATE_WEB_ACCESSIBILITY_SETTINGS)
     203    if (!liblibAccessibility())
     204        return;
     205#endif
     206
    202207    if (domain == String(kAXSAccessibilityPreferenceDomain)) {
    203208#if HAVE(UPDATE_WEB_ACCESSIBILITY_SETTINGS)
     
    213218#endif
    214219    }
    215 
     220}
     221
     222void AuxiliaryProcess::handlePreferenceChange(const String& domain, const String& key, id value)
     223{
     224    handleAXPreferenceChange(domain, key, value);
    216225    dispatchSimulatedNotificationsForPreferenceChange(key);
    217226}
Note: See TracChangeset for help on using the changeset viewer.