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

Unified Diff: content/browser/accessibility/browser_accessibility_manager.cc

Issue 1932383002: Don't send focus accessibility events when tab isn't focused. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_manager.cc
diff --git a/content/browser/accessibility/browser_accessibility_manager.cc b/content/browser/accessibility/browser_accessibility_manager.cc
index e734b6cf7354e9b1e6e6b9ebd00ac1392da105ff..df9c93165957a824c317b7d231c8b11bb9090091 100644
--- a/content/browser/accessibility/browser_accessibility_manager.cc
+++ b/content/browser/accessibility/browser_accessibility_manager.cc
@@ -189,7 +189,7 @@ void BrowserAccessibilityManager::FireFocusEventsIfNeeded() {
// Don't fire focus events if the window itself doesn't have focus.
// Bypass this check if a global focus listener was set up for testing
// so that the test passes whether the window is active or not.
- if (!g_focus_change_callback_for_testing.Pointer()) {
+ if (g_focus_change_callback_for_testing.Get().is_null()) {
if (delegate_ && !delegate_->AccessibilityViewHasFocus())
focus = nullptr;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698