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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/active_indicator.js

Issue 1137403003: Fix ChromeVox's detection of whether the current document has focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/chromevox/injected/active_indicator.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/active_indicator.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/active_indicator.js
index 9d3a5370adcd163c211325c59a2d66301f1eb724..f318aee63a1d04a92c9106c166e594e54ee496b6 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/active_indicator.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/active_indicator.js
@@ -474,7 +474,7 @@ cvox.ActiveIndicator.prototype.moveIndicator_ = function(
var now = new Date().getTime();
var delta = now - this.lastMoveTime_;
this.container_.className = 'cvox_indicator_container';
- if (!document.hasFocus() || this.blurred_) {
+ if (!cvox.ChromeVox.documentHasFocus() || this.blurred_) {
this.container_.classList.add('cvox_indicator_window_not_focused');
}
if (delta > cvox.ActiveIndicator.NORMAL_ANIM_DELAY_MS) {

Powered by Google App Engine
This is Rietveld 408576698