Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f664dfad6595869dd83e8cb1eb32d23abd5ed6a9
      
https://github.com/WebKit/WebKit/commit/f664dfad6595869dd83e8cb1eb32d23abd5ed6a9
  Author: Tyler Wilcock <[email protected]>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M Source/WebCore/accessibility/AXObjectCache.h
    M Source/WebCore/accessibility/mac/AXObjectCacheMac.mm

  Log Message:
  -----------
  AX: AXObjectCache::onDocumentRenderTreeCreation can call getOrCreate at times 
when it's not safe to do so, which causes CheckedPtr crashes
https://bugs.webkit.org/show_bug.cgi?id=304938
rdar://165274244

Reviewed by Joshua Hoffman.

AXObjectCache::onDocumentRenderTreeCreation is downstream of 
DocumentLoader::finishedLoading(), and that is not a safe
time to call getOrCreate, which requires clean layout and style. Defer handling 
of these new render trees via a new
AXObjectCache::m_deferredDocumentsWithNewRenderTrees member variable.

* Source/WebCore/accessibility/AXObjectCache.h:
* Source/WebCore/accessibility/mac/AXObjectCacheMac.mm:
(WebCore::AXObjectCache::onDocumentRenderTreeCreation):
(WebCore::AXObjectCache::platformPerformDeferredCacheUpdate):

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



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

Reply via email to