Repository navigation
Conversation
c3b2ef5 to
9825299
Compare
There was a problem hiding this comment.
Pull request overview
Removes the legacy Microsoft.Web.WebView2-based Win32 backend from Uno.UI.Runtime.Skia.Win32 and standardizes on the WebView2Aot backend going forward (aligned with the repo’s move to net10/net11). This reduces maintenance surface and simplifies the runtime package’s dependency set.
Changes:
- Removed the
Microsoft.Web.WebView2backend implementation (including its WebResourceRequested wrappers) and themicrosoft.web.webview2switch option. - Simplified the Win32 WebView provider logic to only create the WebView2Aot-based implementation.
- Updated WebView documentation to reflect backend availability changes (but it still contains legacy-backend guidance that should be removed/updated).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Uno.UI.Runtime.Skia.Win32/Uno.UI.Runtime.Skia.Win32.csproj | Drops legacy WebView2 package references and makes WebView2Aot unconditional (net10/net11). |
| src/Uno.UI.Runtime.Skia.Win32/UI/Xaml/Controls/WebView/Win32NativeWebView.WebResourceRequested.cs | Deletes legacy backend WebResourceRequested adapter types. |
| src/Uno.UI.Runtime.Skia.Win32/UI/Xaml/Controls/WebView/Win32NativeWebView.cs | Removes legacy-backend selection and defaults to the AOT backend only. |
| doc/articles/controls/WebView.md | Updates backend documentation, but still includes instructions for the removed backend/value. |
Comments suppressed due to low confidence (1)
src/Uno.UI.Runtime.Skia.Win32/UI/Xaml/Controls/WebView/Win32NativeWebView.cs:5
- After removing the legacy backend implementation, most of the
usingdirectives in this file are now unused (e.g.,System.Drawing,System.IO,Windows.Storage,Windows.Win32). Cleaning them up avoids analyzer noise and makes the provider easier to read.
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Net.Http;
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23757/wasm-skia-net9/index.html |
|
The build 222330 found UI Test snapshots differences: Details
|
Context: #23621 Context: #23603 PR #23621 added a WebView2Aot backend for `<WebView2/>` within `Uno.UI.Runtime.Skia.Win32`, and added support for a `UNO_WEBVIEW2_BACKEND` environment variable to switch between the backends. For Uno 7, remove support for the original Microsoft.Web.WebView2 backend. We'll stick with WebView2Aot going forward, which will reduce assembly size (only one backend), simplify maintenance (only one backend), and has support for Native AOT. Additionally, as the feature/breakingchanges branch is now on .NET 11 (#23603), which drops support for .NET 9, we no longer need to make the WebView2Aot NuGet reference conditional on .NET 10+. Cleanup `Uno.UI.Runtime.Skia.Win32` accordingly.
9825299 to
72c5e4a
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23757/wasm-skia-net9/index.html |
|
The build 222523 found UI Test snapshots differences: Details
|
Context: #23621
Context: #23603
PR #23621 added a WebView2Aot backend for
<WebView2/>withinUno.UI.Runtime.Skia.Win32, and added support for aUNO_WEBVIEW2_BACKENDenvironment variable to switch between the backends.For Uno 7, remove support for the original Microsoft.Web.WebView2 backend. We'll stick with WebView2Aot going forward, which will reduce assembly size (only one backend), simplify maintenance (only one backend), and has support for Native AOT.
Additionally, as the feature/breakingchanges branch is now on .NET 11 (#23603), which drops support for .NET 9, we no longer need to make the WebView2Aot NuGet reference conditional on .NET 10+. Cleanup
Uno.UI.Runtime.Skia.Win32accordingly.PR Type:
🔄 Refactoring (no functional changes, no api changes)
What changed? 🚀
PR Checklist ✅
Screenshots Compare Test Runresults.