[webkit-changes] [WebKit/WebKit] a16b21: Fix null dereference in AXObjectCache::get

Alex Christensen noreply at github.com
Tue Jan 28 17:08:40 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a16b21fd101b4931ebddaa6d86fb22ba04eee17f
      https://github.com/WebKit/WebKit/commit/a16b21fd101b4931ebddaa6d86fb22ba04eee17f
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2025-01-28 (Tue, 28 Jan 2025)

  Changed paths:
    M Source/WTF/wtf/WeakHashMap.h
    M Source/WebCore/accessibility/AXObjectCache.h

  Log Message:
  -----------
  Fix null dereference in AXObjectCache::get
https://bugs.webkit.org/show_bug.cgi?id=286643

Reviewed by Tyler Wilcock.

I have crash logs that indicate that m_renderObjectMapping is not always being
cleaned up properly when a RenderObject is destroyed.  This changes the map type
to WeakHashMap, which is robust against such cases.

* Source/WTF/wtf/WeakHashMap.h:
* Source/WebCore/accessibility/AXObjectCache.h:

Canonical link: https://commits.webkit.org/289474@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list