Bug 1565414 - update audit functionality to include warnings and best practices results. r=mtigley

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Yura Zenevich 2019-07-15 23:01:07 +00:00
Родитель 8df08d5f7d
Коммит e51df71677
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -165,6 +165,10 @@ const NAME_FROM_SUBTREE_RULE_ROLES = new Set([
const IS_OSX = Services.appinfo.OS === "Darwin";
const {
SCORES: { BEST_PRACTICES, FAIL, WARNING },
} = accessibility;
/**
* Helper function that determines if nsIAccessible object is in stale state. When an
* object is stale it means its subtree is not up to date.
@ -549,7 +553,7 @@ const AccessibleWalkerActor = ActorClassWithSpec(accessibleWalkerSpec, {
check =>
check != null &&
!check.error &&
check.score === accessibility.SCORES.FAIL
[BEST_PRACTICES, FAIL, WARNING].includes(check.score)
)
) {
ancestries.push(this.getAncestry(acc));