Repository navigation
fix: Prevent win32 cycle detection in UIA provider navigation - #23198
Conversation
…ng ancestor tracking
There was a problem hiding this comment.
Pull request overview
This PR aims to harden Win32 Skia UIA navigation against ancestor/child cycles, specifically the DataGrid-style provider recursion described in kahua-private#461, and adds a manual SamplesApp repro to validate the scenario.
Changes:
- Add ancestor-aware filtering to Win32 UIA child/sibling navigation to skip providers that resolve back to the current ancestor chain.
- Introduce a helper for building the ancestor provider set and warning when a cycle is detected.
- Add a manual SamplesApp repro page plus project registration for the DataGrid-style UIA child-cycle scenario.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
src/Uno.UI.Runtime.Skia.Win32/Accessibility/Win32RawElementProvider.cs |
Updates Win32 UIA navigation to detect ancestor cycles during child/sibling traversal. |
src/SamplesApp/UITests.Shared/Windows_UI.Xaml_Automation/UiaChildCycle_DataGrid.xaml.cs |
Adds a manual repro sample and custom peers that intentionally recreate the cycle pattern. |
src/SamplesApp/UITests.Shared/Windows_UI.Xaml_Automation/UiaChildCycle_DataGrid.xaml |
Adds the sample UI and manual verification instructions for inspect.exe / Accessibility Insights. |
src/SamplesApp/UITests.Shared/UITests.Shared.projitems |
Registers the new sample XAML and code-behind in the shared SamplesApp project. |
💡 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-23198/wasm-skia-net9/index.html |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23198/wasm-skia-net9/index.html |
GitHub Issue:** partially improves https://github.com/unoplatform/kahua-private/issues/461
PR Type:
🐞 Bugfix
What changed? 🚀
PR Checklist ✅
Screenshots Compare Test Runresults.