Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4a5a2da864a3b93b8b5119b48d020f54b67babe1
      
https://github.com/WebKit/WebKit/commit/4a5a2da864a3b93b8b5119b48d020f54b67babe1
  Author: Tyler Wilcock <[email protected]>
  Date:   2026-04-22 (Wed, 22 Apr 2026)

  Changed paths:
    M Source/WebCore/accessibility/AXLiveRegionManager.cpp

  Log Message:
  -----------
  AX: AXLiveRegionManager::buildLiveRegionSnapshot can hang when iterating 
giant live regions
https://bugs.webkit.org/show_bug.cgi?id=312823
rdar://175190959

Reviewed by Joshua Hoffman.

Web developers can pack arbitrary amounts of content into a live region, causing
buildLiveRegionSnapshot to walk an unbounded accessibility tree and hang the web
content process. Add a shared counter (maximumSnapshotObjects = 512) that caps 
the
total objects visited across both the main buildObjectList walk and the 
collectDescendants
walk for atomic regions.

* Source/WebCore/accessibility/AXLiveRegionManager.cpp:
(WebCore::AXLiveRegionManager::buildLiveRegionSnapshot const):

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



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

Reply via email to