Index: content/browser/accessibility/browser_accessibility_cocoa.mm |
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.mm b/content/browser/accessibility/browser_accessibility_cocoa.mm |
index bb3e2b5245171535fce7dbe98ae5c222e7b4adea..10788e77cbf3aee2ba6865a912a6e05c6abfa449 100644 |
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm |
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm |
@@ -1215,7 +1215,6 @@ NSDictionary* attributeToMethodNameMap = nil; |
NSAccessibilityWindowAttribute, |
@"AXAccessKey", |
@"AXInvalid", |
- @"AXRequired", |
@"AXVisited", |
nil]; |
@@ -1351,6 +1350,11 @@ NSDictionary* attributeToMethodNameMap = nil; |
NSAccessibilityOrientationAttribute, nil]]; |
} |
+ if (GetState(browserAccessibility_, ui::AX_STATE_REQUIRED)) { |
+ [ret addObjectsFromArray:[NSArray arrayWithObjects: |
+ @"AXRequired", nil]]; |
+ } |
+ |
// Title UI Element. |
if (browserAccessibility_->HasIntAttribute(ui::AX_ATTR_TITLE_UI_ELEMENT) || |
(browserAccessibility_->HasIntListAttribute(ui::AX_ATTR_LABELLEDBY_IDS) && |