diff options
author | Balazs Egedi <egedib@inf.u-szeged.hu> | 2021-04-21 17:44:18 +0200 |
---|---|---|
committer | Balazs Egedi <egedib@inf.u-szeged.hu> | 2021-05-02 16:00:40 +0200 |
commit | b9b52cdff21baca25b1690bd497d949d01b0b493 (patch) | |
tree | 9dc8462edb2c2a91e795f019d5a2b28f5f0ca0e5 /src/core/browser_accessibility_qt.cpp | |
parent | 38dff99542288281ac52bcc63d2dfba0ec290300 (diff) |
Update accessibility roles and test after 88-based
Change-Id: I0a4f93945c013f83b5398a7282a8ea723040d699
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/browser_accessibility_qt.cpp')
-rw-r--r-- | src/core/browser_accessibility_qt.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/browser_accessibility_qt.cpp b/src/core/browser_accessibility_qt.cpp index fabad0609..eb2cf64f0 100644 --- a/src/core/browser_accessibility_qt.cpp +++ b/src/core/browser_accessibility_qt.cpp @@ -334,6 +334,11 @@ QAccessible::Role BrowserAccessibilityQt::role() const case ax::mojom::Role::kDocIndex: case ax::mojom::Role::kDocIntroduction: case ax::mojom::Role::kDocNotice: + return QAccessible::Section; + case ax::mojom::Role::kDocPageFooter: + return QAccessible::Footer; + case ax::mojom::Role::kDocPageHeader: + return QAccessible::Heading; case ax::mojom::Role::kDocPageList: case ax::mojom::Role::kDocPart: case ax::mojom::Role::kDocPreface: @@ -359,7 +364,8 @@ QAccessible::Role BrowserAccessibilityQt::role() const case ax::mojom::Role::kFigure: return QAccessible::Section; case ax::mojom::Role::kFooter: - return QAccessible::Footer; + // CORE-AAM recommends LANDMARK instead of FOOTER. + return QAccessible::Section; case ax::mojom::Role::kFooterAsNonLandmark: return QAccessible::Section; case ax::mojom::Role::kForm: |