nvaccess / nvda

NVDA, the free and open source Screen Reader for Microsoft Windows
Other
2.08k stars 626 forks source link

NVDA read toast message several time when toast disappears (primereact v7 or v8 on Firefox #14362

Open arnauddem opened 1 year ago

arnauddem commented 1 year ago

Steps to reproduce:

  1. Open primereact v7 (or v8) / Toast message page: https://www.primefaces.org/primereact-v7/#/toast

  2. Start NVDA 2022.3.2 (or .1),

  3. Click on Severities / Error button

  4. a Toast message appears, NVDA read correctly toast message: image

  5. Wait for toast message to disappears (after few seconds)

OR 4.bis click on Option / Sticky Button, Toast message appears, Then at any time, click on close button => toast message is read several when closing toast message.

Actual behavior:

NVDA read several time toast message when it disappears: image

Expected behavior:

NVDA should not read toast message when it disappears.

NVDA logs, crash dumps and other attachments:

System configuration

NVDA installed/portable/running from source:

NVDA version:

2022.3.1 and 2022.3.2

Windows version:

Windows 10.

Name and version of other software in use when reproducing the issue:

Primereact v7 on Firefox 106.0.5 (Chrome & Edge works fine)

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

2022.3.1 and 2022.3.2

If NVDA add-ons are disabled, is your problem still occurring?

No addon installed

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

issue still occur.

seanbudd commented 1 year ago

This appears to be a bug with role=alert. Similar issues have been reported: #7596, #12193

seanbudd commented 1 year ago

To be able to reproduce and investigate this issue, it would be helpful to have a minimal code sample. Provide a minimal HTML sample to reproduce this using codepen.

seanbudd commented 1 year ago

We need a minimal HTML sample to proceed. If you are unable to provide one, please report this bug to the authors of the library.

arnauddem commented 1 year ago

Hi ! I can reproduce behavior on this minimal HTML example. Alert contents is read two times when alert is closing. https://codepen.io/arnauddem/pen/JjZyXBq Thanks.

seanbudd commented 1 year ago

Hi @arnauddem, while this is helpful, this is far from a minimal HTML sample. To be able to debug this properly we need plain HTML and JS, without external dependencies.

Adriani90 commented 1 year ago

I think this is not related to HTML only, but rather to annimations added by angular ripples and applied on toast messages. I guess Firefox renders them differently. In Chrome this is not reproducible.

If you press the button "error" and just wait, you will notice that NVDA reports the toast annimation when it appears and also when it disappears. In Chrome, NVDA reports this only when it appears.

cc: @jcsteh since this is only reproducible in Firefox.