Skip to content

Fix spurious reporting of aria-hidden focus ancestors in Firefox.#7357

Merged
jcsteh merged 1 commit into
masterfrom
i5741FirefoxKillAriaHiddenAncestors
Aug 1, 2017
Merged

Fix spurious reporting of aria-hidden focus ancestors in Firefox.#7357
jcsteh merged 1 commit into
masterfrom
i5741FirefoxKillAriaHiddenAncestors

Conversation

@jcsteh

@jcsteh jcsteh commented Jul 5, 2017

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #5741.

Summary of the issue:

If an author (incorrectly) focuses something inside an aria-hidden element in Firefox, NVDA will report all of the aria-hidden ancestors, even if they would have been layout otherwise.

Description of how this pull request fixes the issue:

When presentationType is unavailable, isPresentableFocusAncestor should be False, just as it is for layout. Previously, it was True.
Unfortunately, NVDA's message dialogs are sometimes briefly treated as unavailable when they get focus. We still want them to be reported. Work around this in the app module for NVDA itself.

Testing performed:

  1. Tested with the test case provided in Firefox: NVDA reads aria-hidden divs as section when they are ancestors of the focus #5741 (comment).
  2. Tested that pressing enter to open details for a tweet on Twitter no longer reports "section" several times.

Known issues with pull request:

None.

Change log entry:

In Bug Fixes:

- In Firefox, NVDA no longer spuriously reports "section" several times when opening details for a tweet on twitter.com. (#5741)

When presentationType is unavailable, isPresentableFocusAncestor should be False, just as it is for layout. Previously, it was True.
Unfortunately, NVDA's message dialogs are sometimes briefly treated as unavailable when they get focus. We still want them to be reported. Work around this in the app module for NVDA itself.
@jcsteh jcsteh requested a review from michaelDCurran July 5, 2017 01:03
@shiovan

shiovan commented Jul 5, 2017

Copy link
Copy Markdown

Had these changes been done in the release build that is available on https://www.nvaccess.org/download/ ?

@kvn-dh-zeus

Copy link
Copy Markdown

Where can we find updated version of nvda with fix of this issue?

@jcsteh jcsteh merged commit b90069a into master Aug 1, 2017
@nvaccessAuto nvaccessAuto added this to the 2017.3 milestone Aug 1, 2017
@jcsteh jcsteh deleted the i5741FirefoxKillAriaHiddenAncestors branch August 1, 2017 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Firefox: NVDA reads aria-hidden divs as section when they are ancestors of the focus

5 participants