Bug 1335734 - Make sure ARIA role 'directory' exposes the READONLY state so it doesn't get treated as a widget, r=surkov

MozReview-Commit-ID: 9J90gANe9Ib

--HG--
extra : rebase_source : bdfa84fa07864453ee7e1b4559b90e7d196b7da0
This commit is contained in:
Marco Zehe 2017-02-02 06:46:00 +01:00
parent 66ebeced1b
commit e37a92d3e7
2 changed files with 7 additions and 1 deletions

View File

@ -184,7 +184,7 @@ static const nsRoleMapEntry sWAIRoleMaps[] =
eNoAction,
eNoLiveAttr,
eList,
kNoReqStates
states::READONLY
},
{ // document
&nsGkAtoms::document,

View File

@ -179,6 +179,9 @@
testStates("aria_treegrid_readonly_cell_inherited", STATE_READONLY, 0,
0, EXT_STATE_EDITABLE);
// aria-readonly on directory
testStates("aria_directory", STATE_READONLY);
// aria-selectable
testStates("aria_selectable_listitem", STATE_SELECTABLE | STATE_SELECTED);
@ -625,5 +628,8 @@
<div role="row"><div role="gridcell">h</div></div>
</div>
<!-- Test that directory is readonly -->
<div id="aria_directory" role="directory"></div>
</body>
</html>