-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Conversation
Make TerminalAutomationPeer not crash the app if creation failed.
Do we know whether the TCAP gets created eventually even if we return |
There was a problem hiding this 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.
There was a problem hiding this 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.
Just need confirmation on the question, then we're good to go. |
Using trace, I know that we still create the TCAP. So, this should be fine. |
Co-Authored-By: Dustin L. Howett (MSFT) <[email protected]>
🎉 Handy links: |
Summary of the Pull Request
Remove WindowUiaProvider entry points
Make TerminalAutomationPeer not crash the app if creation failed.
References
PR Checklist
Tests added/passedRequires documentation to be updatedDetailed 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