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 098ea678ecf0dad4f5d8af0fb73e2b58b115dcef..7be6f0c1802dcf440693654a60113849f385bfe6 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js |
@@ -223,6 +223,10 @@ AutomationPredicate.object = function(node) { |
if (node.parent && node.parent.state.editable) |
return false; |
+ // Descend into large nodes. |
+ if (node.name && node.name.length > constants.OBJECT_MAX_CHARCOUNT) |
+ return false; |
+ |
return node.state.focusable || |
(AutomationPredicate.leafOrStaticText(node) && |
(/\S+/.test(node.name) || |