| Index: ui/views/accessibility/ax_window_obj_wrapper.cc
|
| diff --git a/ui/views/accessibility/ax_window_obj_wrapper.cc b/ui/views/accessibility/ax_window_obj_wrapper.cc
|
| index b358de58c917ce4ec7c8a2328d726f83dda29349..ac045826b938c49b68aa17fafdc513d2ebf4fdee 100644
|
| --- a/ui/views/accessibility/ax_window_obj_wrapper.cc
|
| +++ b/ui/views/accessibility/ax_window_obj_wrapper.cc
|
| @@ -49,8 +49,13 @@ void AXWindowObjWrapper::Serialize(ui::AXNodeData* out_node_data) {
|
| // TODO(dtseng): Set better states.
|
| out_node_data->state = 0;
|
| out_node_data->location = window_->bounds();
|
| - out_node_data->AddStringAttribute(
|
| - ui::AX_ATTR_NAME, base::UTF16ToUTF8(window_->title()));
|
| +
|
| + // Root windows currently have a non readable name (e.g. Display1234...);
|
| + // ignore them unless the window is the only node in the tree.
|
| + if (window_->parent() || window_->children().size() == 0) {
|
| + out_node_data->AddStringAttribute(ui::AX_ATTR_NAME,
|
| + base::UTF16ToUTF8(window_->title()));
|
| + }
|
| }
|
|
|
| int32 AXWindowObjWrapper::GetID() {
|
|
|