Skip to content

fix: Prevent win32 cycle detection in UIA provider navigation - #23198

Merged
MartinZikmund merged 3 commits into
masterfrom
dev/doti/win32-cycle-detection
May 6, 2026
Merged

MartinZikmund merged 3 commits into
masterfrom
dev/doti/win32-cycle-detection

Conversation

@morning4coffe-dev

Copy link
Copy Markdown
Member

GitHub Issue:** partially improves https://github.com/unoplatform/kahua-private/issues/461

PR Type:

🐞 Bugfix

What changed? 🚀

PR Checklist ✅

Copilot AI review requested due to automatic review settings May 5, 2026 09:55
@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label May 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund merged commit 3fb5ba8 into master May 6, 2026
46 checks passed
@MartinZikmund
MartinZikmund deleted the dev/doti/win32-cycle-detection branch May 6, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants