Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3213)

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js

Issue 743273002: Various changes required to support ChromeVox Next to read Views and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ready with changes for flip (SpokenFeedbackTest.* pass). Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js
index 9dbdde0a9af73635f1c63a5280dd5dd4d4cb1711..7137da2d1fe6addec2b8ea236ba742b7d3540439 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util.js
@@ -181,7 +181,9 @@ AutomationUtil.getDivergence = function(ancestorsA, ancestorsB) {
if (ancestorsA[i] !== ancestorsB[i])
return i;
}
- return -1;
+ if (ancestorsA.length == ancestorsB.length)
+ return -1;
+ return ancestorsA.length;
};
/**

Powered by Google App Engine
This is Rietveld 408576698