| 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 66139d98de5232a51c0b5f2720921d8ca7107777..d5d9956f345141a1a4dd2edde5f88132d37f01f4 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;
|
| };
|
|
|
| /**
|
|
|