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 ba8e05519d97035c2d3c55e082e8be1a28ea208e..532eb70969c2321523b3441b44a8af423ac73c77 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js |
@@ -55,7 +55,9 @@ AutomationPredicate.link = |
* @return {boolean} |
*/ |
AutomationPredicate.leaf = function(node) { |
- return !node.firstChild(); |
+ return !node.firstChild() || node.children().every(function(n) { |
+ return n.state.invisible; |
+ }); |
}; |
/** |