Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Accessibility Reliability #2609

Merged
merged 3 commits into from
Sep 23, 2019
Merged

Conversation

carlos-zamora
Copy link
Member

@carlos-zamora carlos-zamora commented Aug 29, 2019

Summary of the Pull Request

Remove WindowUiaProvider entry points
Make TerminalAutomationPeer not crash the app if creation failed.

References

PR Checklist

  • Closes nothing
  • CLA signed.
  • Tests added/passed
  • Requires documentation to be updated
  • I'm a core contributor

Detailed Description of the Pull Request / Additional comments

WindowUiaProvider was something I thought we needed. We still need it for signaling (maybe). But it sometimes can crash because it's not hooked up properly at all. For now, I removed all entry points. After the signaling model gets added for #2447, I'll decide if we actually need to remove it.

Also surrounded the TerminalControlAutomationPeer with a try/catch. If we don't have everything we need to create the AutomationPeer yet, we'll just catch it and move forward.

Validation Steps Performed

Make TerminalAutomationPeer not crash the app if creation failed.
@carlos-zamora carlos-zamora added the Area-Accessibility Issues related to accessibility label Aug 29, 2019
@carlos-zamora carlos-zamora self-assigned this Aug 29, 2019
@DHowett-MSFT
Copy link
Contributor

DHowett-MSFT commented Sep 3, 2019

Do we know whether the TCAP gets created eventually even if we return nullptr a couple times?

Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add a note that if we do fail to make the TCAP initially, TermControl::OnCreateAutomationPeer will be called again later, so we'll have another chance.

Copy link
Member

@miniksa miniksa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved hoping you commit the already requested changes by others before merging.

@DHowett-MSFT
Copy link
Contributor

Just need confirmation on the question, then we're good to go.

@carlos-zamora
Copy link
Member Author

Do we know whether the TCAP gets created eventually even if we return nullptr a couple times?

Using trace, I know that we still create the TCAP. So, this should be fine.

Co-Authored-By: Dustin L. Howett (MSFT) <[email protected]>
@carlos-zamora carlos-zamora merged commit 6b41512 into master Sep 23, 2019
@carlos-zamora carlos-zamora deleted the dev/cazamor/acc/remove-WUP branch September 23, 2019 15:59
@ghost
Copy link

ghost commented Sep 24, 2019

🎉Windows Terminal Preview v0.5.2661.0 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Accessibility Issues related to accessibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants