forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support presentational iframes and make use of them in the uber frame.
A presentational iframe, e.g. <iframe role="presentation">, is one where the web author is indicating that the frame is an implementation detail. Suppress the normal role for the frame and for its inner document / web area, so that accessibility clients see the frame as if it was part of the parent document. Make use of this in the uber frame for settings, history, and extensions. BUG=436186 Review URL: https://codereview.chromium.org/755173004 Cr-Commit-Position: refs/heads/master@{#308859}
- Loading branch information
1 parent
0b8e89d
commit 8b43c60
Showing
15 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,7 @@ | |
group, | ||
heading, | ||
iframe, | ||
iframePresentational, | ||
ignored, | ||
imageMapLink, | ||
imageMap, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
content/test/data/accessibility/iframe-presentational-expected-android.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
android.webkit.WebView focusable focused scrollable | ||
android.view.View | ||
android.view.View | ||
android.view.View | ||
android.view.View scrollable |
5 changes: 5 additions & 0 deletions
5
content/test/data/accessibility/iframe-presentational-expected-mac.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
AXWebArea AXRoleDescription='HTML content' | ||
AXGroup AXRoleDescription='group' | ||
AXGroup AXRoleDescription='presentation' | ||
AXUnknown AXRoleDescription='unknown' | ||
AXGroup AXRoleDescription='group' |
5 changes: 5 additions & 0 deletions
5
content/test/data/accessibility/iframe-presentational-expected-win.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE | ||
IA2_ROLE_SECTION | ||
ROLE_SYSTEM_GROUPING FOCUSABLE | ||
IA2_ROLE_SCROLL_PANE | ||
ROLE_SYSTEM_GROUPING READONLY FOCUSABLE |
10 changes: 10 additions & 0 deletions
10
content/test/data/accessibility/iframe-presentational.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- | ||
@MAC-ALLOW:AXRole* | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<iframe src="iframesrc.html" role="presentation"> | ||
</iframe> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,7 @@ | |
group, | ||
heading, | ||
iframe, | ||
iframe_presentational, | ||
ignored, | ||
image_map_link, | ||
image_map, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters