AXLogger::streamAXCoreObject is missing a null check for AccessibilityObject dynamicD...
commit7c8078f03f0b4a01894266b133f6fb6b28718ba9
authortyler_w@apple.com <tyler_w@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 May 2022 16:41:49 +0000 (9 16:41 +0000)
committertyler_w@apple.com <tyler_w@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 May 2022 16:41:49 +0000 (9 16:41 +0000)
tree387dedc4413f220a1cc8c236c6069f617b26f70d
parent80c2724a785b84f0b6dd8773868eb0625078e277
AXLogger::streamAXCoreObject is missing a null check for AccessibilityObject dynamicDowncast
https://bugs.webkit.org/show_bug.cgi?id=240228

Reviewed by Andres Gonzalez.

When checking if an object has display:contents, we do:

if (auto* axObject = dynamicDowncast<AccessibilityObject>(&object); axObject->hasDisplayContents())

Which does not have a nullcheck for when the dynamicDowncast fails (i.e. because
the object is not an AccessibilityObject).

* accessibility/AXLogger.cpp:
(WebCore::streamAXCoreObject):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@293978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AXLogger.cpp