Bug 1622162 - Add pinned and current to state string representation. r=Jamie

Differential Revision: https://phabricator.services.mozilla.com/D66712

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Eitan Isaacson 2020-03-13 04:32:46 +00:00
Родитель d17a9a9a55
Коммит a6a85d62a2
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -829,8 +829,11 @@ already_AddRefed<DOMStringList> nsAccessibilityService::GetStringStates(
if (aStates & states::SENSITIVE) { if (aStates & states::SENSITIVE) {
stringStates->Add(NS_LITERAL_STRING("sensitive")); stringStates->Add(NS_LITERAL_STRING("sensitive"));
} }
if (aStates & states::EXPANDABLE) { if (aStates & states::PINNED) {
stringStates->Add(NS_LITERAL_STRING("expandable")); stringStates->Add(NS_LITERAL_STRING("pinned"));
}
if (aStates & states::CURRENT) {
stringStates->Add(NS_LITERAL_STRING("current"));
} }
return stringStates.forget(); return stringStates.forget();