Repository navigation
WebView2 fixes - #23226
WebView2 fixes#23226
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adjusts Win32 WebView2 and native HWND hosting behavior in the Skia.Win32 backend to reduce visual glitches during initial WebView2 setup (black flash / animation artifacts) and to make native child-window z-ordering more deterministic.
Changes:
- Updated WebView2 window initialization to disable DWM transitions and tweaked controller initialization/visibility to improve first-load visuals.
- Deferred native child HWND positioning to a render-adjacent callback to reduce flicker during scrolling/movement, and changed the “first show” gating to occur after the first render that consumed an arrange.
- Added deterministic native HWND z-order handling via a per-parent tracked ordering map.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
src/Uno.UI.Runtime.Skia.Win32/UI/Xaml/Controls/WebView/Win32NativeWebView.cs |
Disables DWM transitions for the WebView2 host window and adjusts controller initialization to reduce initial visual artifacts. |
src/Uno.UI.Runtime.Skia.Win32/Native/Win32NativeElementHostingExtension.cs |
Defers SetWindowPos to render-time for reduced flicker and introduces deterministic z-ordering for hosted native HWNDs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4d7cb81 to
ffbb16b
Compare
|
The build 211578 found UI Test snapshots differences: Details
|
c91f641 to
561c37b
Compare
561c37b to
242b4cc
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23226/wasm-skia-net9/index.html |
|
The build 211672 found UI Test snapshots differences: Details
|
|
|
GitHub Issue:
closes https://github.com/unoplatform/kahua-private/issues/449
closes https://github.com/unoplatform/kahua-private/issues/467
closes https://github.com/unoplatform/kahua-private/issues/471
PR Type: 🐞 Bugfix
What changed? 🚀
PR Checklist ✅
Screenshots Compare Test Runresults.