Skip to content

closing tooltip's popup directly (#5932) - #6002

Closed
singhashish-wpf wants to merge 1 commit into
dotnet:release/6.0from
singhashish-wpf:5932
Closed

singhashish-wpf wants to merge 1 commit into
dotnet:release/6.0from
singhashish-wpf:5932

Conversation

@singhashish-wpf

Copy link
Copy Markdown
Contributor

Fixes #5730

Description

Closing a tooltip's Popup directly (as opposed to closing the ToolTip and letting WPF close the Popup in response) causes WPF to clear some private state on the ToolTip while leaving its IsOpen=true. When the ToolTip is eventually closed, WPF uses that state and crashes because it's null.

Fixed by preserving the private state until the ToolTip itself is closed, and adding logic to ensure that the state is cleared even if the Popup was already closed before the ToolTip closed.

Customer Impact

Fixes a regression.

Regression

Yes.

Testing

Risk

Low. The fix itself is safe. The customer reports did not include repros, so there's a small risk that there are crashing scenarios that this fix doesn't address.

@singhashish-wpf
singhashish-wpf requested a review from a team as a code owner January 27, 2022 09:47
@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:47
@leecow leecow added this to the 6.0.3 milestone Feb 3, 2022
@singhashish-wpf

Copy link
Copy Markdown
Contributor Author

Changes of this PR are merged directly in commit 5dc0554 due to merge conflicts and remote repo deletion from where the PR was raised.

@singhashish-wpf singhashish-wpf added the * NO MERGE * metadata: The PR is not ready for merge yet (see discussion for detailed reasons) label 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

* NO MERGE * metadata: The PR is not ready for merge yet (see discussion for detailed reasons) 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.

3 participants