Title: [293978] trunk/Source/WebCore
- Revision
- 293978
- Author
- [email protected]
- Date
- 2022-05-09 09:41:49 -0700 (Mon, 09 May 2022)
Log Message
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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (293977 => 293978)
--- trunk/Source/WebCore/ChangeLog 2022-05-09 16:22:40 UTC (rev 293977)
+++ trunk/Source/WebCore/ChangeLog 2022-05-09 16:41:49 UTC (rev 293978)
@@ -1,3 +1,20 @@
+2022-05-09 Tyler Wilcock <[email protected]>
+
+ 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):
+
2022-05-09 Kate Cheney <[email protected]>
Image controls menu button is not appearing for multi-page PDFs
Modified: trunk/Source/WebCore/accessibility/AXLogger.cpp (293977 => 293978)
--- trunk/Source/WebCore/accessibility/AXLogger.cpp 2022-05-09 16:22:40 UTC (rev 293977)
+++ trunk/Source/WebCore/accessibility/AXLogger.cpp 2022-05-09 16:41:49 UTC (rev 293978)
@@ -592,7 +592,7 @@
}
if (options & AXStreamOptions::DisplayContents) {
- if (auto* axObject = dynamicDowncast<AccessibilityObject>(&object); axObject->hasDisplayContents())
+ if (auto* axObject = dynamicDowncast<AccessibilityObject>(&object); axObject && axObject->hasDisplayContents())
stream.dumpProperty("hasDisplayContents", true);
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes