diff --git a/accessible/base/ARIAMap.cpp b/accessible/base/ARIAMap.cpp index c29d37873c87..48da2d48e973 100644 --- a/accessible/base/ARIAMap.cpp +++ b/accessible/base/ARIAMap.cpp @@ -184,7 +184,7 @@ static const nsRoleMapEntry sWAIRoleMaps[] = eNoAction, eNoLiveAttr, eList, - kNoReqStates + states::READONLY }, { // document &nsGkAtoms::document, diff --git a/accessible/tests/mochitest/states/test_aria.html b/accessible/tests/mochitest/states/test_aria.html index 7d1ecf650831..1fb19c7c4291 100644 --- a/accessible/tests/mochitest/states/test_aria.html +++ b/accessible/tests/mochitest/states/test_aria.html @@ -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 @@
h
+ +
+