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

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

Issue 2008773002: Begin using ChromeVox Next to read tab and window titles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a bunch of tests. Created 4 years, 7 months 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/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);
},
/**

Powered by Google App Engine
This is Rietveld 408576698