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
parent d17a9a9a55
commit a6a85d62a2

View File

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