Title: [292085] trunk/Source/WebCore
- Revision
- 292085
- Author
- [email protected]
- Date
- 2022-03-29 17:32:17 -0700 (Tue, 29 Mar 2022)
Log Message
AXIsolatedObject::isAccessibilityObject should not be ASSERT_NOT_REACHED
https://bugs.webkit.org/show_bug.cgi?id=238511
Reviewed by Chris Fleizach.
We try to downcast AXCoreObjects to AccessibilityObjects here in AXLogger's TextStream& operator<<(TextStream&, const AXCoreObject&):
if (auto* axObject = dynamicDowncast<AccessibilityObject>(&object); axObject && axObject->hasDisplayContents())
stream.dumpProperty("hasDisplayContents", true);
So this should not ASSERT_NOT_REACHED in AXIsolatedObject.
* accessibility/isolatedtree/AXIsolatedObject.cpp:
(WebCore::AXIsolatedObject::isAccessibilityObject const): Deleted.
* accessibility/isolatedtree/AXIsolatedObject.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (292084 => 292085)
--- trunk/Source/WebCore/ChangeLog 2022-03-30 00:12:28 UTC (rev 292084)
+++ trunk/Source/WebCore/ChangeLog 2022-03-30 00:32:17 UTC (rev 292085)
@@ -1,3 +1,21 @@
+2022-03-29 Tyler Wilcock <[email protected]>
+
+ AXIsolatedObject::isAccessibilityObject should not be ASSERT_NOT_REACHED
+ https://bugs.webkit.org/show_bug.cgi?id=238511
+
+ Reviewed by Chris Fleizach.
+
+ We try to downcast AXCoreObjects to AccessibilityObjects here in AXLogger's TextStream& operator<<(TextStream&, const AXCoreObject&):
+
+ if (auto* axObject = dynamicDowncast<AccessibilityObject>(&object); axObject && axObject->hasDisplayContents())
+ stream.dumpProperty("hasDisplayContents", true);
+
+ So this should not ASSERT_NOT_REACHED in AXIsolatedObject.
+
+ * accessibility/isolatedtree/AXIsolatedObject.cpp:
+ (WebCore::AXIsolatedObject::isAccessibilityObject const): Deleted.
+ * accessibility/isolatedtree/AXIsolatedObject.h:
+
2022-03-29 Devin Rousso <[email protected]>
Web Inspector: Sources: allow Response Local Overrides to map to a file on disk
Modified: trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp (292084 => 292085)
--- trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp 2022-03-30 00:12:28 UTC (rev 292084)
+++ trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.cpp 2022-03-30 00:32:17 UTC (rev 292085)
@@ -1310,12 +1310,6 @@
return false;
}
-bool AXIsolatedObject::isAccessibilityObject() const
-{
- ASSERT_NOT_REACHED();
- return false;
-}
-
bool AXIsolatedObject::isAccessibilityNodeObject() const
{
ASSERT_NOT_REACHED();
Modified: trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h (292084 => 292085)
--- trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h 2022-03-30 00:12:28 UTC (rev 292084)
+++ trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h 2022-03-30 00:32:17 UTC (rev 292085)
@@ -485,8 +485,9 @@
bool press() override;
bool performDefaultAction() override;
+ bool isAccessibilityObject() const override { return false; }
+
// Functions that should never be called on an isolated tree object. ASSERT that these are not reached;
- bool isAccessibilityObject() const override;
bool isAccessibilityNodeObject() const override;
bool isAccessibilityRenderObject() const override;
bool isAccessibilityScrollbar() const override;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes