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

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

Issue 2627733003: Don't enable accessibility just because IAccessible2 APIs are queried. (Closed)
Patch Set: Created 3 years, 11 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_win.cc
diff --git a/content/browser/accessibility/browser_accessibility_win.cc b/content/browser/accessibility/browser_accessibility_win.cc
index 680f26f298a664fd445a41eb378d7c1adfd1817a..6040ef8facf90caa002fe36cfb3cdfdb614f911f 100644
--- a/content/browser/accessibility/browser_accessibility_win.cc
+++ b/content/browser/accessibility/browser_accessibility_win.cc
@@ -3623,12 +3623,6 @@ STDMETHODIMP BrowserAccessibilityWin::QueryService(REFGUID guid_service,
if (!instance_active())
return E_FAIL;
- // The system uses IAccessible APIs for many purposes, but only
- // assistive technology like screen readers uses IAccessible2.
- // Enable full accessibility support when IAccessible2 APIs are queried.
- if (riid == IID_IAccessible2)
- BrowserAccessibilityStateImpl::GetInstance()->EnableAccessibility();
-
if (guid_service == GUID_IAccessibleContentDocument) {
// Special Mozilla extension: return the accessible for the root document.
// Screen readers use this to distinguish between a document loaded event
« 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