DescriptionFix crash when system retains an accessibility object.
The system might retain instances to BrowserAccessibilityCocoa
objects even after they're no longer used. Previously, we handled
this by having BrowserAccessibilityCocoa own BrowserAccessibilityMac
so that its underlying data would persist as long as the wrapper.
However, this led to crashes when the system calls methods that
explore the tree hierarchy, like GetLocalBoundsRect.
The proper fix is that BrowserAccessibilityCocoa should detach
from BrowserAccessibilityMac with the latter is deleted, and
then do a NULL check in any NSAccessibility protocol implementation
so that it won't crash when a deleted object is queried.
BUG=242944
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|