| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js
|
| index bec050603a1de5b3c5fb81dbf31235aa6e77c7f5..a82292baecbfc92acc99ff1d4e4b509148425ab7 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js
|
| @@ -534,8 +534,9 @@ cursors.Range.prototype = {
|
| * @return {boolean}
|
| */
|
| isWebRange: function() {
|
| - return this.start.node.root.role != RoleType.desktop ||
|
| - this.end.node.root.role != RoleType.desktop;
|
| + return this.isValid() &&
|
| + (this.start.node.root.role != RoleType.desktop ||
|
| + this.end.node.root.role != RoleType.desktop);
|
| },
|
|
|
| /**
|
|
|