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

Changeset 176484 in webkit


Ignore:
Timestamp:
Nov 21, 2014, 4:11:51 PM (12 years ago)
Author:
Chris Fleizach
Message:

AX: com.apple.WebKit.WebContent crashed at WebCore: WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const
https://bugs.webkit.org/show_bug.cgi?id=138905

Reviewed by Mario Sanchez Prada.

The crash log indicates that m_renderer is null at the time we ask ancestorsOfType().
This is more of a speculative fix, since I am not entirely sure m_renderer is null when we enter the method.

Unable to determine cause of crash or how to reproduce on demand.

  • accessibility/AccessibilityRenderObject.cpp:

(WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176482 r176484  
     12014-11-21  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: com.apple.WebKit.WebContent crashed at WebCore: WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const
     4        https://bugs.webkit.org/show_bug.cgi?id=138905
     5
     6        Reviewed by Mario Sanchez Prada.
     7
     8        The crash log indicates that m_renderer is null at the time we ask ancestorsOfType().
     9        This is more of a speculative fix, since I am not entirely sure m_renderer is null when we enter the method.
     10
     11        Unable to determine cause of crash or how to reproduce on demand.
     12
     13        * accessibility/AccessibilityRenderObject.cpp:
     14        (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
     15
    1162014-11-21  Jer Noble  <jer.noble@apple.com>
    217
  • trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp

    r176447 r176484  
    11651165#endif
    11661166
     1167    if (!m_renderer)
     1168        return true;
     1169   
    11671170    // Check first if any of the common reasons cause this element to be ignored.
    11681171    // Then process other use cases that need to be applied to all the various roles
     
    11931196   
    11941197    // ignore popup menu items because AppKit does
    1195     if (ancestorsOfType<RenderMenuList>(*m_renderer).first())
     1198    if (m_renderer && ancestorsOfType<RenderMenuList>(*m_renderer).first())
    11961199        return true;
    11971200
Note: See TracChangeset for help on using the changeset viewer.