phetsims / resistance-in-a-wire

"Resistance in a Wire" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/resistance-in-a-wire
GNU General Public License v3.0
1 stars 4 forks source link

VO may not read alerts #133

Closed phet-steele closed 6 years ago

phet-steele commented 6 years ago

This was NOT occurring in macOS 10.12.6 + Safari 10.1.2. It IS occurring in macOS 10.13.3 + Safari 11.0.3.

Go here: https://www.colorado.edu/physics/phet/dev/html/resistance-in-a-wire/1.5.0-dev.1/phet/resistance-in-a-wire_a11y_view.html

  1. With VO enabled, tab into the sim and press the Reset All button. Verify you hear "Sim screen restarted..."
  2. Tab out of the sim (press tab three more times from the Reset All button), then shift + tab back to the Reset All button
  3. Press the Reset All button and wait to listen for "Sim screen restarted..."

On my device, I never hear the alert in step 3. In fact, I no longer hear any alerts (ie. I no longer hear "As letter grows, other letter grows..."). Something about exiting the sim iframe then re-entering is not letting alerts be spoken by my VO.

You can try the above procedure at https://jsfiddle.net/wLzu63s8/24/ and you will not reproduce the issue (at least I can't). So likely this is a problem on our side @jessegreenberg?

Now when it comes to the proper sim link (https://www.colorado.edu/physics/phet/dev/html/resistance-in-a-wire/1.5.0-dev.1/phet/resistance-in-a-wire_en_phet.html), a trigger for this issue is harder to find. This issue DOES happen without being in an iframe, but again the trigger is unclear. I could investigate more, but I would like @jessegreenberg to give it a shot as well.

For phetsims/QA/issues/92.

terracoda commented 6 years ago

For the record, my system is macOS 10.13.3 + Safari 11.0.3, and I do indeed experience this problem often. I do not recall experiencing the problem (at least not frequently) before upgrading.

jessegreenberg commented 6 years ago

Great to know, thanks @terracoda.

jessegreenberg commented 6 years ago

I can get this bug to happen consistently in the main sim in macOS 10.13.3 Safari 11.0.3 by switching browser tabs. If I leave the sim browser tab and then return to it, all aria-live alerts stop. Reloading the sim fixes the problem. If I switch applications and then come back to Safari, alerts still work.

I have not been able to reproduce the case where alerts stop happening without switching tabs. @phet-steele does this make sense or were you able to break alerts without leaving the sim tab?

phet-steele commented 6 years ago

@phet-steele does this make sense or were you able to break alerts without leaving the sim tab?

@jessegreenberg makes a whole lot of sense. Can reproduce on my end, thanks!

jessegreenberg commented 6 years ago

Thanks @phet-steele, in that case we have verified that this is a VoiceOver bug. In http://jsfiddle.net/wLzu63s8/55/ I tried a few hacky workarounds to try to get around this:

None of these worked, so I think the next step is to file a bug report to Apple. Closing this issue.

terracoda commented 6 years ago

@jessegreenberg, thanks for testing out the other aria-live attributes.