[Webkit-unassigned] [Bug 95740] [GTK] Crash in AccessibilityObject::accessibilityPlatformIncludesObject()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 4 06:57:19 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=95740





--- Comment #1 from Joanmarie Diggs (irc: joanie) <jdiggs at igalia.com>  2012-09-04 06:57:32 PST ---
Seems we need a sanity check here:

--- a/Source/WebCore/accessibility/gtk/AccessibilityObjectAtk.cpp
+++ b/Source/WebCore/accessibility/gtk/AccessibilityObjectAtk.cpp
@@ -104,7 +104,7 @@ AccessibilityObjectInclusion AccessibilityObject::accessibilityPlatformIncludesO
     // anonymous blocks which are aria-related to themselves have an aria role, nor
     // have we encountered instances where the parent of an anonymous block also lacked
     // an aria role but the grandparent had one.
-    if (renderer()->isAnonymousBlock() && !parent->renderer()->isBody()
+    if (renderer() && renderer()->isAnonymousBlock() && !parent->renderer()->isBody()
         && parent->ariaRoleAttribute() == UnknownRole)
         return IgnoreObject;

My bad.

I still need to come up with a layout test that reproduces this scenario. (It's triggered by an AT poking at objects, e.g. looking for the next Heading for structural navigation, and coming across an object that lacks a renderer.)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list