Title: [293352] branches/safari-613.2.7.0-branch/Source/WebCore
Revision
293352
Author
alanc...@apple.com
Date
2022-04-25 14:18:00 -0700 (Mon, 25 Apr 2022)

Log Message

Cherry-pick r290860. rdar://problem/89291570

    AX: Protect incoming object with Ref in AXObjectCache::textChanged
    https://bugs.webkit.org/show_bug.cgi?id=237475

    Reviewed by Chris Fleizach.

    This is better practice as ascending the hierarchy could cause
    the object to get deleted.

    * accessibility/AXObjectCache.cpp:
    (WebCore::AXObjectCache::textChanged):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290860 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613.2.7.0-branch/Source/WebCore/ChangeLog (293351 => 293352)


--- branches/safari-613.2.7.0-branch/Source/WebCore/ChangeLog	2022-04-25 20:59:44 UTC (rev 293351)
+++ branches/safari-613.2.7.0-branch/Source/WebCore/ChangeLog	2022-04-25 21:18:00 UTC (rev 293352)
@@ -1,3 +1,34 @@
+2022-04-25  Alan Coon  <alanc...@apple.com>
+
+        Cherry-pick r290860. rdar://problem/89291570
+
+    AX: Protect incoming object with Ref in AXObjectCache::textChanged
+    https://bugs.webkit.org/show_bug.cgi?id=237475
+    
+    Reviewed by Chris Fleizach.
+    
+    This is better practice as ascending the hierarchy could cause
+    the object to get deleted.
+    
+    * accessibility/AXObjectCache.cpp:
+    (WebCore::AXObjectCache::textChanged):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-03-04  Tyler Wilcock  <tyle...@apple.com>
+
+            AX: Protect incoming object with Ref in AXObjectCache::textChanged
+            https://bugs.webkit.org/show_bug.cgi?id=237475
+
+            Reviewed by Chris Fleizach.
+
+            This is better practice as ascending the hierarchy could cause
+            the object to get deleted.
+
+            * accessibility/AXObjectCache.cpp:
+            (WebCore::AXObjectCache::textChanged):
+
 2022-04-25  Russell Epstein  <repst...@apple.com>
 
         Cherry-pick r292430. rdar://problem/92204558

Modified: branches/safari-613.2.7.0-branch/Source/WebCore/accessibility/AXObjectCache.cpp (293351 => 293352)


--- branches/safari-613.2.7.0-branch/Source/WebCore/accessibility/AXObjectCache.cpp	2022-04-25 20:59:44 UTC (rev 293351)
+++ branches/safari-613.2.7.0-branch/Source/WebCore/accessibility/AXObjectCache.cpp	2022-04-25 21:18:00 UTC (rev 293352)
@@ -944,6 +944,7 @@
 
     if (!object)
         return;
+    Ref<AccessibilityObject> protectedObject(*object);
 
     // If this element supports ARIA live regions, or is part of a region with an ARIA editable role,
     // then notify the AT of changes.
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to