| 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;
|
| };
|
|
|
| /**
|
|
|