Changeset 263573 in webkit


Ignore:
Timestamp:
Jun 26, 2020 12:26:22 PM (4 years ago)
Author:
Andres Gonzalez
Message:

Fix for crash in AXIsolatedObject::relativeFrame.
https://bugs.webkit.org/show_bug.cgi?id=213363

Reviewed by Chris Fleizach.

Covered by existing testss.

Between the time an isolated object dispatches the method to the main
thread and the time the lambda is executed, the isolated object is
detached and hence its object ID becomes invalid. Thus, trying to get
the associated AX object results in an assert/crash.

  • accessibility/isolatedtree/AXIsolatedObject.h:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r263572 r263573  
     12020-06-26  Andres Gonzalez  <andresg_22@apple.com>
     2
     3        Fix for crash in AXIsolatedObject::relativeFrame.
     4        https://bugs.webkit.org/show_bug.cgi?id=213363
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Covered by existing testss.
     9
     10        Between the time an isolated object dispatches the method to the main
     11        thread and the time the lambda is executed, the isolated object is
     12        detached and hence its object ID becomes invalid. Thus, trying to get
     13        the associated AX object results in an assert/crash.
     14
     15        * accessibility/isolatedtree/AXIsolatedObject.h:
     16
    1172020-06-26  Andres Gonzalez  <andresg_22@apple.com>
    218
  • trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h

    r263120 r263573  
    8585    {
    8686        ASSERT(isMainThread());
    87         return axObjectCache()->objectFromAXID(objectID());
     87        return m_id != InvalidAXID ? axObjectCache()->objectFromAXID(m_id) : nullptr;
    8888    }
    8989
Note: See TracChangeset for help on using the changeset viewer.