Skip to content

Conversation

@SamBent
Copy link
Contributor

@SamBent SamBent commented Dec 16, 2021

Addresses #5443
This is a port of a servicing fix in .NET 4.7-4.8.

Description

This bug is about "anomalous" windows, where the UIA_WindowVisibilityOverridden property is set to 1 (ForceVisible), but window's rect is empty. The .NET automation code doesn't recognize this property, and thus treats the window as "not visible" because it's empty. This means an automation search won't find any windows below the anomalous window.

Fixed by recognizing the property, and overriding the hwnd's visibility to automation accordingly.

Customer Impact

Automation searches cannot find descendants of anomalous windows (e.g. the Windows 11 Start button).

Regression

No.

Testing

Ad-hoc around customer scenario.
Standard regression testing.

Risk

Low. Port of a .NETFx servicing fix released earlier this year.

@SamBent SamBent requested a review from a team as a code owner December 16, 2021 02:11
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Dec 16, 2021
@ghost ghost requested review from fabiant3 and ryalanms December 16, 2021 02:11
@dipeshmsft dipeshmsft self-assigned this Dec 27, 2021
@singhashish-wpf singhashish-wpf merged commit 4f7cd95 into dotnet:main Jan 19, 2022
dipeshmsft added a commit that referenced this pull request Feb 7, 2022
Co-authored-by: Sam Bent <sambent@microsoft.com>
dipeshmsft added a commit that referenced this pull request Feb 7, 2022
Co-authored-by: Sam Bent <sambent@microsoft.com>
dipeshmsft pushed a commit that referenced this pull request Feb 7, 2022
Co-authored-by: Sam Bent <sambent@microsoft.com>
@ghost ghost locked as resolved and limited conversation to collaborators Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants