Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js |
index b2dbd612750de40d84b80df6fe3d2bbdb3289214..86174b675228552c723c24c8d0cc400d3a5e0f0b 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js |
@@ -994,6 +994,8 @@ Output.prototype = { |
return; |
var uniqueAncestors = AutomationUtil.getUniqueAncestors(prevParent, parent); |
for (var i = 0; parent = uniqueAncestors[i]; i++) { |
+ if (parent.role == RoleType.window) |
+ break; |
if (Output.ROLE_INFO_[parent.role] && |
Output.ROLE_INFO_[parent.role].outputContextFirst) { |
this.outputContextFirst_ = true; |