| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
|
| index c14c6a92245c8b811bbc82985f75e4d9c37c3f15..3e6fe190fc10822c5f1432f83c733bacbed0718c 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
|
| @@ -55,9 +55,11 @@ AutomationPredicate.link =
|
| * @return {boolean}
|
| */
|
| AutomationPredicate.leaf = function(node) {
|
| - return !node.firstChild || node.children.every(function(n) {
|
| - return n.state.invisible;
|
| - });
|
| + return !node.firstChild ||
|
| + node.role == chrome.automation.RoleType.button ||
|
| + node.children.every(function(n) {
|
| + return n.state.invisible;
|
| + });
|
| };
|
|
|
| /**
|
|
|