Skip to content
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

WebView2 should destroy its temporary hwnd if there is no CoreWindow #7273

Merged
merged 3 commits into from
Jun 28, 2022

Conversation

krschau
Copy link
Contributor

@krschau krschau commented Jun 23, 2022

If a WebView2 is created in a situation with no CoreWindow (like an island), then it will be parented to a temporary HWND we create. In that scenario, when it knows what its "real" parent should be, we should destroy that dummy HWND.

In scenarios with a CoreWindow, this change doesn't affect the WebView2's behavior.

OffTreeWebViewInputTest, which is already in the code, is relevant for validating this change.

This ports changes from WinUI 3 PRs 6810832 and 7385365.

@krschau krschau requested a review from DmitriyKomin June 23, 2022 18:55
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jun 23, 2022
@krschau
Copy link
Contributor Author

krschau commented Jun 23, 2022

/azp run

@krschau krschau added area-WebView and removed needs-triage Issue needs to be triaged by the area owners labels Jun 23, 2022
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@krschau
Copy link
Contributor Author

krschau commented Jun 23, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@krschau
Copy link
Contributor Author

krschau commented Jun 27, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@DmitriyKomin DmitriyKomin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@krschau krschau merged commit d08303e into main Jun 28, 2022
@krschau krschau deleted the user/krschau/wv2-destroy-hwnd branch June 28, 2022 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants