Changeset 255364 in webkit


Ignore:
Timestamp:
Jan 29, 2020 10:01:14 AM (4 years ago)
Author:
Andres Gonzalez
Message:

Crash in AXIsolatedObject destruction.
https://bugs.webkit.org/show_bug.cgi?id=206828

Reviewed by Carlos Alberto Lopez Perez.

Fix for crash on GTK introduced with this IsolatedTree change.

  • accessibility/atk/AccessibilityObjectAtk.cpp:

(WebCore::AccessibilityObject::detachPlatformWrapper):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r255362 r255364  
     12020-01-29  Andres Gonzalez  <andresg_22@apple.com>
     2
     3        Crash in AXIsolatedObject destruction.
     4        https://bugs.webkit.org/show_bug.cgi?id=206828
     5
     6        Reviewed by Carlos Alberto Lopez Perez.
     7
     8        Fix for crash on GTK introduced with this IsolatedTree change.
     9
     10        * accessibility/atk/AccessibilityObjectAtk.cpp:
     11        (WebCore::AccessibilityObject::detachPlatformWrapper):
     12
    1132020-01-29  Peng Liu  <peng.liu6@apple.com>
    214
  • trunk/Source/WebCore/accessibility/atk/AccessibilityObjectAtk.cpp

    r255167 r255364  
    3838void AccessibilityObject::detachPlatformWrapper(AccessibilityDetachmentType detachmentType)
    3939{
    40     if (auto* cache = axObjectCache())
    41         cache->detachWrapper(this, detachmentType);
     40    if (detachmentType != AccessibilityDetachmentType::CacheDestroyed) {
     41        if (auto* cache = axObjectCache())
     42            cache->detachWrapper(this, detachmentType);
     43    }
     44
     45    auto* wrapper = this->wrapper();
     46    ASSERT(wrapper);
     47    webkitAccessibleDetach(WEBKIT_ACCESSIBLE(wrapper));
    4248}
    4349
Note: See TracChangeset for help on using the changeset viewer.