Skip to content

Avalonia: Fix webview crash. CR:forestmaxime#4777

Merged
Gabriel Dufresne (GabrielDuf) merged 4 commits into
mainfrom
WebViewCrash
May 14, 2026
Merged

Avalonia: Fix webview crash. CR:forestmaxime#4777
Gabriel Dufresne (GabrielDuf) merged 4 commits into
mainfrom
WebViewCrash

Conversation

@GabrielDuf
Copy link
Copy Markdown
Contributor

@GabrielDuf Gabriel Dufresne (GabrielDuf) commented May 14, 2026

This pull request introduces a custom UniGetUiWebView control to better manage the WebView user data folder, and updates the Help and Release Notes pages to use this new control. The most important changes are grouped below:

WebView user data folder management:

  • Added a static property WebViewUserDataFolder in App.axaml.cs to centralize the WebView user data folder path, and updated the setup logic to use this property.
  • Created a new UniGetUiWebView control that sets the UserDataFolder for WebView2 on Windows using the centralized path.

Usage of the new custom WebView control:

  • Updated HelpPage.axaml and ReleaseNotesPage.axaml to use UniGetUiWebView instead of the default NativeWebView control, and adjusted their XML namespaces accordingly.

fix issue #4765

@forestmaxime Maxime Forest (forestmaxime) changed the title Avalonia: Fix webview crash Avalonia: Fix webview crash. CR:forestmaxime May 14, 2026
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit e20c08d into main May 14, 2026
3 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the WebViewCrash branch May 14, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants