Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(716)

Issue 17261008: Fix crash when system retains an accessibility object. (Closed)

Created:
7 years, 6 months ago by dmazzoni
Modified:
7 years, 6 months ago
Reviewers:
David Tseng
CC:
chromium-reviews, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, jam, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, ctguil+watch_chromium.org, zork+watch_chromium.org
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -18 lines) Patch
M content/browser/accessibility/browser_accessibility_cocoa.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_cocoa.mm View 13 chunks +45 lines, -6 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_mac.mm View 1 chunk +8 lines, -11 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_mac_unittest.mm View 3 chunks +27 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
dmazzoni
7 years, 6 months ago (2013-06-19 21:32:36 UTC) #1
David Tseng
lgtm Was this tested with VoiceOver/Accessibility Inspector? The change seems reasonable, but not sure I've ...
7 years, 6 months ago (2013-06-20 17:49:36 UTC) #2
dmazzoni
On Thu, Jun 20, 2013 at 10:49 AM, <dtseng@chromium.org> wrote: > lgtm > > Was ...
7 years, 6 months ago (2013-06-20 23:33:09 UTC) #3
David Tseng
> > Still lgtm. > > I think we got away without it for a ...
7 years, 6 months ago (2013-06-21 00:41:18 UTC) #4
dmazzoni
On Thu, Jun 20, 2013 at 5:41 PM, David Tseng <dtseng@chromium.org> wrote: > But, definitely ...
7 years, 6 months ago (2013-06-21 04:57:01 UTC) #5
dmazzoni
7 years, 6 months ago (2013-06-21 06:24:06 UTC) #6
Landed r207709

Powered by Google App Engine
This is Rietveld 408576698