Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js |
index 67b261f3cb7cbf9b8ea1f12397f8003f0e9a0343..f16ed4e390841f75882204e411f3c122b1a1a87f 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js |
@@ -500,7 +500,11 @@ Background.prototype = { |
var actionNode = current.start.node; |
if (actionNode.role == RoleType.inlineTextBox) |
actionNode = actionNode.parent; |
- actionNode.focus(); |
+ |
+ // Iframes, when focused, causes the child webArea to fire focus event. |
+ // This can result in getting stuck when navigating backward. |
+ if (actionNode.role != RoleType.iframe && !actionNode.state.focused) |
+ actionNode.focus(); |
var prevRange = this.currentRange_; |
this.setCurrentRange(current); |