Changeset 287880 in webkit
- Timestamp:
- Jan 11, 2022, 7:44:23 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
accessibility/mac/WebAccessibilityObjectWrapperBase.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r287879 r287880 1 2022-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 1 18 2022-01-11 Sam Weinig <weinig@apple.com> 2 19 -
trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperBase.mm
r286116 r287880 365 365 - (WebCore::AXCoreObject*)axBackingObject 366 366 { 367 if (isMainThread()) 368 return m_axObject; 369 367 370 #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 372 377 } 373 378
Note:
See TracChangeset
for help on using the changeset viewer.