When serializing accessibility tree, skip invalid children.
commit8dc07f045c6287da3404fa8e0fd8b1b3960afbfa
authordmazzoni <dmazzoni@chromium.org>
Thu, 4 Jun 2015 00:24:59 +0000 (3 17:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 4 Jun 2015 00:26:33 +0000 (4 00:26 +0000)
treee126c70f661f3b6889dcc010d1613b0ebcba26c5
parent68ed2157fd8e37400456c798184cdc8afb702cd1
When serializing accessibility tree, skip invalid children.

See bug for specific repro in the wild, but essentially we need to check
if the child is valid just before serializing, and not trust the list of
children of a node.

BUG=479743

Review URL: https://codereview.chromium.org/1144363004

Cr-Commit-Position: refs/heads/master@{#332748}
ui/accessibility/ax_tree_serializer.h
ui/accessibility/ax_tree_serializer_unittest.cc