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

Changeset 287880 in webkit


Ignore:
Timestamp:
Jan 11, 2022, 7:44:23 AM (5 years ago)
Author:
Andres Gonzalez
Message:

Make [WebAccessibilityObjectWrapperBase axBackingObject] return the appropriate underlying object for the calling thread.
https://bugs.webkit.org/show_bug.cgi?id=235046
<rdar://problem/87358177>

Reviewed by Chris Fleizach.

In isolated tree mode, WebAccessibilityObjectWrapperBase axBackingObject
can be called on and off the main thread. This change ensures that the
AXIsolatedObject is always returned off the main thread, while the
AXObejct is always returned on the main thread, which is the required
behavior.

  • accessibility/mac/WebAccessibilityObjectWrapperBase.mm:

(-[WebAccessibilityObjectWrapperBase axBackingObject]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r287879 r287880  
     12022-01-11  Andres Gonzalez  <andresg_22@apple.com>
     2
     3        Make [WebAccessibilityObjectWrapperBase axBackingObject] return the appropriate underlying object for the calling thread.
     4        https://bugs.webkit.org/show_bug.cgi?id=235046
     5        <rdar://problem/87358177>
     6
     7        Reviewed by Chris Fleizach.
     8
     9        In isolated tree mode, WebAccessibilityObjectWrapperBase axBackingObject
     10        can be called on and off the main thread. This change ensures that the
     11        AXIsolatedObject is always returned off the main thread, while the
     12        AXObejct is always returned on the main thread, which is the required
     13        behavior.
     14
     15        * accessibility/mac/WebAccessibilityObjectWrapperBase.mm:
     16        (-[WebAccessibilityObjectWrapperBase axBackingObject]):
     17
    1182022-01-11  Sam Weinig  <weinig@apple.com>
    219
  • trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperBase.mm

    r286116 r287880  
    365365- (WebCore::AXCoreObject*)axBackingObject
    366366{
     367    if (isMainThread())
     368        return m_axObject;
     369
    367370#if ENABLE(ACCESSIBILITY_ISOLATED_TREE)
    368     if (AXObjectCache::isIsolatedTreeEnabled())
    369         return m_isolatedObject;
    370 #endif
    371     return m_axObject;
     371    ASSERT(AXObjectCache::isIsolatedTreeEnabled());
     372    return m_isolatedObject;
     373#else
     374    ASSERT_NOT_REACHED();
     375    return nullptr;
     376#endif
    372377}
    373378
Note: See TracChangeset for help on using the changeset viewer.