Repository navigation
Update Avalonia.Controls.WebView to 12.1.2 so WebView2 processes exit - #5766
Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit intoNov 16, 2026
Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
Gabriel Dufresne (GabrielDuf) merged 1 commit into
Conversation
Leaving the Help or Release Notes page disposes the page and detaches its web view (Devolutions#5131), and hiding the window to the tray now does the same. With Avalonia.Controls.WebView 12.0.0 that had no effect on Windows: the control never destroyed its WebView2 adapter (AdapterDestroyed was never raised), so the msedgewebview2 process cluster stayed alive and every return to the page added another renderer process. Measured on Windows by opening Help and then navigating to Discover: 12.0.0 / 12.0.1: 6 msedgewebview2 processes still running 23 s after leaving; 7 after opening Help again. 12.1.2: 0 processes 3 s after leaving; 6 after opening Help again. The adapter is internal to the package, so it cannot be disposed from our side without reflection. The rest of Avalonia stays on 12.0.4; the solution builds and the test suite gives the same result as before. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Gabriel Dufresne (GabrielDuf)
approved these changes
Nov 16, 2026
Gabriel Dufresne (GabrielDuf)
merged commit Nov 16, 2026
8b2d7d7
into
Devolutions:main
10 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Leaving the Help or Release Notes page disposes the page and detaches its web view (#5131). With Avalonia.Controls.WebView 12.0.0 that has no effect on Windows: the control never destroys its WebView2 adapter (
AdapterDestroyedis never raised), so themsedgewebview2processes stay alive and each return to the page adds another renderer. The adapter is internal to the package, so it can't be disposed from our side without reflection.Measured on Windows 11 by opening Help and then going to Discover:
msedgewebview2processes after leaving HelpThe rest of Avalonia stays on 12.0.4.
Testing
dotnet build src/UniGetUI.Windows.slnx /p:Platform=x64: 0 errors. Bothdotnet formatgates pass.Not tested: Linux and macOS web views, and Release Notes (same code path as Help).
Relates to #5131