Skip to content

Conversation

@singhashish-wpf
Copy link
Contributor

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.

@singhashish-wpf singhashish-wpf requested a review from a team as a code owner January 27, 2022 09:40
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jan 27, 2022
@ghost ghost requested review from SamBent, fabiant3 and ryalanms January 27, 2022 09:40
@leecow leecow added this to the 6.0.3 milestone Feb 3, 2022
@dipeshmsft dipeshmsft merged commit 0c2b044 into dotnet:release/6.0 Feb 7, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Apr 5, 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 Servicing-approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants