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

Issue 2929673002: Add null check when reporting changed nodes to an AX tree. (Closed)

Created:
3 years, 6 months ago by dmazzoni
Modified:
3 years, 5 months ago
Reviewers:
David Tseng
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add null check when reporting changed nodes to an AX tree. See bug for repro; this happens when we get an event fired on a window that's not part of the window hierarchy. The rest of the code ignores it fine but the tree change callbacks get called on a null node, which causes problems. BUG=727842 Review-Url: https://codereview.chromium.org/2929673002 Cr-Commit-Position: refs/heads/master@{#482381} Committed: https://chromium.googlesource.com/chromium/src/+/b232d53c93cfa66c1e3647280cfdd694f52d29f0

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix underlying issue too #

Total comments: 8

Patch Set 3 : Fix logic error #

Patch Set 4 : Simplest fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M ui/accessibility/ax_tree.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/accessibility/ax_window_obj_wrapper.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 35 (21 generated)
dmazzoni
3 years, 6 months ago (2017-06-07 22:21:10 UTC) #3
David Tseng
lgtm Seems harmless, but would it be clearer to fix this on the source end? ...
3 years, 6 months ago (2017-06-07 23:24:24 UTC) #5
dmazzoni
PTAL, addressed the true underlying cause now. The real issue here is that we were ...
3 years, 6 months ago (2017-06-19 17:12:24 UTC) #8
dmazzoni
Friendly ping, this is a crash fix that needs to be merged
3 years, 6 months ago (2017-06-21 15:08:39 UTC) #13
David Tseng
https://codereview.chromium.org/2929673002/diff/20001/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc File chrome/browser/ui/aura/accessibility/automation_manager_aura.cc (right): https://codereview.chromium.org/2929673002/diff/20001/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc#newcode153 chrome/browser/ui/aura/accessibility/automation_manager_aura.cc:153: // of ancestors all the way the root desktop ...
3 years, 6 months ago (2017-06-21 15:44:46 UTC) #14
David Tseng
https://codereview.chromium.org/2929673002/diff/20001/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc File chrome/browser/ui/aura/accessibility/automation_manager_aura.cc (right): https://codereview.chromium.org/2929673002/diff/20001/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc#newcode155 chrome/browser/ui/aura/accessibility/automation_manager_aura.cc:155: // invisible subtree; the object itself thinks it's visible, ...
3 years, 6 months ago (2017-06-21 16:09:51 UTC) #15
dmazzoni
https://codereview.chromium.org/2929673002/diff/20001/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc File chrome/browser/ui/aura/accessibility/automation_manager_aura.cc (right): https://codereview.chromium.org/2929673002/diff/20001/chrome/browser/ui/aura/accessibility/automation_manager_aura.cc#newcode153 chrome/browser/ui/aura/accessibility/automation_manager_aura.cc:153: // of ancestors all the way the root desktop ...
3 years, 6 months ago (2017-06-23 19:48:51 UTC) #16
David Tseng
Stepping back. Your cl description says: See bug for repro; this happens when we get ...
3 years, 6 months ago (2017-06-23 20:53:46 UTC) #21
dmazzoni
OK, I think you're right - let me fix this specific bug by not firing ...
3 years, 6 months ago (2017-06-23 21:47:06 UTC) #22
David Tseng
Great. Also, note that AXWindowObjWrapper::GetChildren explicitly ignores windows that are !IsVisible(). This could very well ...
3 years, 6 months ago (2017-06-23 22:09:27 UTC) #23
dmazzoni
OK, the minimal fix turned out to be in AXWindowObjWrapper. I'll do a change to ...
3 years, 5 months ago (2017-06-26 17:46:30 UTC) #24
David Tseng
lgtm
3 years, 5 months ago (2017-06-26 17:50:06 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2929673002/60001
3 years, 5 months ago (2017-06-26 20:24:55 UTC) #31
commit-bot: I haz the power
3 years, 5 months ago (2017-06-26 20:32:58 UTC) #35
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b232d53c93cfa66c1e3647280cfd...

Powered by Google App Engine
This is Rietveld 408576698