Skip to content

Conversation

@dipeshmsft
Copy link
Member

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.

@dipeshmsft dipeshmsft requested a review from a team as a code owner January 27, 2022 11:23
@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 11:23
@leecow leecow added this to the 5.0.15 milestone Feb 3, 2022
@dipeshmsft dipeshmsft merged commit 625713f into dotnet:release/5.0 Feb 7, 2022
@dipeshmsft dipeshmsft deleted the pr5839 branch March 14, 2022 02:27
@ghost ghost locked as resolved and limited conversation to collaborators Apr 13, 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