microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.33k stars 675 forks source link

A11Y: WebView2 Sample is completely inaccessible with all the screen readers #9263

Closed akash07k closed 8 months ago

akash07k commented 2 years ago

Describe the bug

The WebView2 example in both (XAML Controls Gallery and WinUI3 Controls Gallery) is completely inaccessible with all the screen readers. Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Go to 'Start menu'
  2. Search for "XAML Controls Gallery or WinUI3 Controls Gallery (Either of the app should be installed)
  3. As soon as the app opens up, search for WebView2 and click the search result. Now navigate via tab inside the WebView2 Sample.
  4. Observe with any Screen reader, nothing will be read out.
  5. Now press arrow keys to read the web content.
  6. Observe, the situation is still same.
  7. Try to close the app via Alt+F4.
  8. App won't close.
  9. Please see the attached app too for demo.

Expected behavior

  1. WebView2/Sample should be accessible and all the web content should be read by the screen reader.
  2. We should be able to close the app/window via Alt+F4 Actual behavior

    As soon as we tab inside the WebView2 control, our focus gets trapped, screen reader doesn't read anything via tab or arrow keys and we are unable to close the app with Alt+F4. Screenshots

Version Info

Additional context

Windows version:

Device form factor:

https://user-images.githubusercontent.com/6381747/161434117-343681bc-a6f4-4c79-a19d-0d443842ab71.mp4

Scarlett.zip

gregwoo-microsoft commented 2 years ago

Thanks for filing this bug @akash07k. We are currently looking into solving this issue. I'll close this issue when this is fixed.

github-actions[bot] commented 9 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

akash07k commented 9 months ago

No, not at all. It is not related

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

akash07k commented 9 months ago

Any update @gregwoo-microsoft

Thanks for filing this bug @akash07k. We are currently looking into solving this issue. I'll close this issue when this is fixed.

gregwoo-microsoft commented 9 months ago

@akash07k thanks for following up. I'll defer to @karkarl who might have more insights on the progress made here.

ranjeshj commented 8 months ago

@akash07k does this still repro with latest WinAppSDK ? There are several fixes in this space over the past year. The Alt+f4 issue is a known issue.

bkudiess commented 8 months ago

Does not repro in current version, webview is accessible by screen readers. Alt+F4 not working is a core webview issue tracked outside of this repo (https://github.com/MicrosoftEdge/WebView2Feedback/issues/2961)