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

Unified Diff: chrome/browser/resources/chromeos/chromevox/host/chrome/braille.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/chrome/braille.js
diff --git a/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js b/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js
index 1b202ade3c21134a4de1fd1c2711f856a7643b84..7683ae8adc8410aee78487a0d28bed983dc83f47 100644
--- a/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js
+++ b/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js
@@ -49,7 +49,7 @@ cvox.ChromeBraille = function() {
// within the iframe even though the containing document also has focus.
// Don't process the event if this document isn't focused or focus lies in
// a descendant.
- if (!document.hasFocus() || document.activeElement.tagName == 'IFRAME') {
+ if (!cvox.ChromeVox.documentHasFocus()) {
return;
}
if (msg['message'] == 'BRAILLE' && msg['args']) {

Powered by Google App Engine
This is Rietveld 408576698