Changeset 271476 in webkit
- Timestamp:
- Jan 13, 2021, 5:17:14 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r271473 r271476 1 2021-01-13 Andres Gonzalez <andresg_22@apple.com> 2 3 Crash ASSERT in AccessibilityRenderObject::textUnderElement during AXIsolatedObject initialization. 4 https://bugs.webkit.org/show_bug.cgi?id=220446 5 6 Reviewed by Chris Fleizach. 7 8 AXIsolatedObject methods that need to forward the call to the associated 9 AXObject on the main thread, should call the updateBackingStore method 10 on the AXObject. 11 This fixes the issue with AccessibilityRenderObject::textUnderElement 12 shown in the stack trace. 13 14 * accessibility/isolatedtree/AXIsolatedObject.cpp: 15 (WebCore::AXIsolatedObject::associatedAXObject const): 16 1 17 2021-01-13 John Wilander <wilander@apple.com> 2 18 -
trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp
r271416 r271476 30 30 31 31 #include "AXIsolatedTree.h" 32 #include "AXLogger.h" 32 33 33 34 #if PLATFORM(COCOA) … … 416 417 ASSERT(isMainThread()); 417 418 418 auto* axObjectCache = this->axObjectCache(); 419 return axObjectCache && m_id != InvalidAXID ? axObjectCache->objectFromAXID(m_id) : nullptr; 419 if (m_id == InvalidAXID) 420 return nullptr; 421 422 if (auto* axObjectCache = this->axObjectCache()) { 423 if (auto* axObject = axObjectCache->objectFromAXID(m_id)) { 424 axObject->updateBackingStore(); 425 return axObject; 426 } 427 } 428 429 return nullptr; 420 430 } 421 431
Note:
See TracChangeset
for help on using the changeset viewer.