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

Unified Diff: chrome/browser/resources/chromeos/chromevox/host/interface/abstract_host.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/host/interface/abstract_host.js
diff --git a/chrome/browser/resources/chromeos/chromevox/host/interface/abstract_host.js b/chrome/browser/resources/chromeos/chromevox/host/interface/abstract_host.js
index 13ff05011efd58efcae1e6341e8d0f7ef9515c51..c4e1e2fcf1ff8993368fcc8c0a98b51c86cb5193 100644
--- a/chrome/browser/resources/chromeos/chromevox/host/interface/abstract_host.js
+++ b/chrome/browser/resources/chromeos/chromevox/host/interface/abstract_host.js
@@ -143,7 +143,7 @@ cvox.AbstractHost.prototype.onStateChanged_ = function(state) {
cvox.ChromeVox.navigationManager.showOrHideIndicator(true);
cvox.ChromeVoxEventWatcher.init(window);
if (document.activeElement) {
- var speakNodeAlso = document.hasFocus() && !document.webkitHidden;
+ var speakNodeAlso = cvox.ChromeVox.documentHasFocus();
cvox.ApiImplementation.syncToNode(
document.activeElement, speakNodeAlso);
} else {

Powered by Google App Engine
This is Rietveld 408576698