Title: [289330] branches/safari-613-branch/Source/WebCore
- Revision
- 289330
- Author
- [email protected]
- Date
- 2022-02-07 18:56:53 -0800 (Mon, 07 Feb 2022)
Log Message
Cherry-pick r288874. rdar://problem/88217815
AX: nullptr crash under AccessibilityRenderObject::computeAccessibilityIsIgnored
https://bugs.webkit.org/show_bug.cgi?id=235945
rdar://88217815
Reviewed by Andres Gonzalez.
This is similar to https://bugs.webkit.org/show_bug.cgi?id=161276.
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const):
m_renderer is a WeakPtr and can become null during parentObjectUnignored call, same as
the case below.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (289329 => 289330)
--- branches/safari-613-branch/Source/WebCore/ChangeLog 2022-02-08 02:56:50 UTC (rev 289329)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog 2022-02-08 02:56:53 UTC (rev 289330)
@@ -1,5 +1,42 @@
2022-02-07 Russell Epstein <[email protected]>
+ Cherry-pick r288874. rdar://problem/88217815
+
+ AX: nullptr crash under AccessibilityRenderObject::computeAccessibilityIsIgnored
+ https://bugs.webkit.org/show_bug.cgi?id=235945
+ rdar://88217815
+
+ Reviewed by Andres Gonzalez.
+
+ This is similar to https://bugs.webkit.org/show_bug.cgi?id=161276.
+
+ * accessibility/AccessibilityRenderObject.cpp:
+ (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const):
+
+ m_renderer is a WeakPtr and can become null during parentObjectUnignored call, same as
+ the case below.
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-02-01 Antti Koivisto <[email protected]>
+
+ AX: nullptr crash under AccessibilityRenderObject::computeAccessibilityIsIgnored
+ https://bugs.webkit.org/show_bug.cgi?id=235945
+ rdar://88217815
+
+ Reviewed by Andres Gonzalez.
+
+ This is similar to https://bugs.webkit.org/show_bug.cgi?id=161276.
+
+ * accessibility/AccessibilityRenderObject.cpp:
+ (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const):
+
+ m_renderer is a WeakPtr and can become null during parentObjectUnignored call, same as
+ the case below.
+
+2022-02-07 Russell Epstein <[email protected]>
+
Cherry-pick r288867. rdar://problem/86320218
Fix handling of access key events
Modified: branches/safari-613-branch/Source/WebCore/accessibility/AccessibilityRenderObject.cpp (289329 => 289330)
--- branches/safari-613-branch/Source/WebCore/accessibility/AccessibilityRenderObject.cpp 2022-02-08 02:56:50 UTC (rev 289329)
+++ branches/safari-613-branch/Source/WebCore/accessibility/AccessibilityRenderObject.cpp 2022-02-08 02:56:53 UTC (rev 289330)
@@ -1396,6 +1396,11 @@
if (is<RenderText>(*m_renderer)) {
// static text beneath MenuItems and MenuButtons are just reported along with the menu item, so it's ignored on an individual level
AXCoreObject* parent = parentObjectUnignored();
+
+ // Walking up the parent chain might reset the m_renderer.
+ if (!m_renderer)
+ return true;
+
if (parent && (parent->isMenuItem() || parent->ariaRoleAttribute() == AccessibilityRole::MenuButton))
return true;
auto& renderText = downcast<RenderText>(*m_renderer);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes