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

Fix MAUI Blazor crash for multi-window Windows apps #6516

Merged
merged 4 commits into from
Apr 29, 2022

Conversation

MackinnonBuck
Copy link
Member

Description of Change

There is currently a WinUI 3 bug causing the WebView2 control to throw an exception when its parent window is closed. This primarily affects multi-window scenarios. This PR introduces a workaround to prevent MAUI Windows apps from crashing when a window hosting a BlazorWebView control is closed.

Issues Fixed

Fixes #5722

@MackinnonBuck MackinnonBuck requested a review from a team as a code owner April 26, 2022 22:51
@rmarinho rmarinho requested a review from Eilon April 28, 2022 13:09
@Eilon Eilon added the area-blazor Blazor Hybrid / Desktop, BlazorWebView label Apr 28, 2022
@MackinnonBuck MackinnonBuck merged commit d0e9037 into main Apr 29, 2022
@MackinnonBuck MackinnonBuck deleted the mbuck/fix-blazorwebview-multi-window-maui-windows branch April 29, 2022 15:58
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/windows 🪟
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verify Blazor Hybrid scenarios on Windows in multi window apps
5 participants