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

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

Issue 638103003: ARIA role region is not exposed correct with MSAA+IA2 role (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Updating aria-flowto.html Created 6 years, 2 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: 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 4438d5a0f702dec7db65775adb3fb2ec62e7073a..edcc52ae018929f477defe2f3b8affecf328c72f 100644
--- a/content/browser/accessibility/browser_accessibility_win.cc
+++ b/content/browser/accessibility/browser_accessibility_win.cc
@@ -3687,9 +3687,11 @@ void BrowserAccessibilityWin::InitRoleAndState() {
ia2_role_ = IA2_ROLE_SECTION;
break;
case ui::AX_ROLE_REGION:
- ia_role_ = ROLE_SYSTEM_GROUPING;
- ia2_role_ = IA2_ROLE_SECTION;
- ia_state_ |= STATE_SYSTEM_READONLY;
+ if (html_tag == L"section") {
+ ia_role_ = ROLE_SYSTEM_GROUPING;
+ ia2_role_ = IA2_ROLE_SECTION;
+ }
+ ia_role_ = ROLE_SYSTEM_PANE;
dmazzoni 2014/10/17 15:46:04 Did you mean to have an "else" here? This will alw
shreeramk 2014/10/17 16:08:22 Ohh...yes...it would be better if its "else"
break;
case ui::AX_ROLE_ROW:
ia_role_ = ROLE_SYSTEM_ROW;

Powered by Google App Engine
This is Rietveld 408576698