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

Issue 1156503007: Merge to M44: An accessibility tree update with two roots should be rejected. (Closed)

Created:
5 years, 6 months ago by dmazzoni
Modified:
5 years, 6 months ago
Reviewers:
CC:
chromium-reviews, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@2403
Target Ref:
refs/pending/branch-heads/2403
Project:
chromium
Visibility:
Public.

Description

Merge to M44: An accessibility tree update with two roots should be rejected. If an AXTreeUpdate had two root nodes, the second one would cause the first one to be deleted, but that could leave dangling pointers in |pending_nodes|. Fix this by first ensuring that |pending_nodes| is always cleaned up when nodse are deleted, but also by specifically returning an error if we encounter two root nodes since that should never happen. BUG=479743 Review URL: https://codereview.chromium.org/1151393006 Cr-Commit-Position: refs/heads/master@{#332212} (cherry picked from commit e3b7faf115bcd4fec56b1658e60abe077d77f379)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -19 lines) Patch
M ui/accessibility/ax_tree.h View 1 chunk +4 lines, -3 lines 0 comments Download
M ui/accessibility/ax_tree.cc View 9 chunks +31 lines, -16 lines 0 comments Download
M ui/accessibility/ax_tree_unittest.cc View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
dmazzoni
5 years, 6 months ago (2015-06-04 21:25:35 UTC) #1
Message was sent while issue was closed.
Committed patchset #1 (id:1) to pending queue manually as
3d6172b44f285cbdd661e425c382f895c9457907.

Powered by Google App Engine
This is Rietveld 408576698