Repository navigation
A11y - #23005
A11y#23005
Conversation
# Conflicts: # src/Uno.UI/UI/Xaml/Automation/Peers/AutomationPeer.cs # src/Uno.UI/UI/Xaml/Automation/Peers/IAutomationPeerListener.cs
…Skia RaiseAutomationEvent
… accessibility tests
…o semantic parents
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
chore: Skia Wasm initial a11y support
…ments chore: Various Wasm a11y accessibility support improvements
MacOSAccessibility is a singleton but Initialize(handle) was called for every new window, resetting the native g_window pointer and g_elements dictionary. Rapid window creation/destruction caused stale pointer dereferences and a segfault (exit code 139) in the When_Create_Multiple_Windows runtime test. - Only call Initialize on the initial/main window - Guard OnNativeWindowReady to skip windows not matching the singleton handle, and bail out of the async callback if the handle changed while queued Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…-master-align-packages
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR improves accessibility (A11y) behavior across Uno UI automation peers and the Skia/WASM accessibility layers, adding roles, focus trapping/synchronization, and live-region support.
Changes:
- Extend automation peer behavior (names, described-by, patterns, set position/size) and wiring of automation events.
- Add/expand Skia/WASM accessibility infrastructure: live regions, focus trap/sync, virtualization helpers, and debug tooling.
- Add samples and runtime tests (currently mostly marked ignored), plus documentation/spec additions.
Reviewed changes
Copilot reviewed 84 out of 108 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Uno.UI/UI/Xaml/Automation/Peers/RichTextBlockAutomationPeer.cs | Removes broken children enumeration and falls back to visual-tree traversal |
| src/Uno.UI/UI/Xaml/Automation/Peers/RichEditBoxAutomationPeer.cs | Uses base described-by behavior while still wiring placeholder described-by |
| src/Uno.UI/UI/Xaml/Automation/Peers/RadioButtonAutomationPeer.cs | Preserves base patterns for non-selection pattern requests |
| src/Uno.UI/UI/Xaml/Automation/Peers/PasswordBoxAutomationPeer.cs | Improves accessible name and described-by behavior for PasswordBox |
| src/Uno.UI/UI/Xaml/Automation/Peers/ListViewItemAutomationPeer.cs | Provides set position/size metadata for screen readers |
| src/Uno.UI/UI/Xaml/Automation/Peers/IAutomationPeerListener.cs | Adds a new automation-event dispatch method |
| src/Uno.UI/UI/Xaml/Automation/Peers/GridViewItemAutomationPeer.cs | Fixes control type and provides set position/size metadata |
| src/Uno.UI/UI/Xaml/Automation/Peers/FrameworkElementAutomationPeer.cs | Improves LabeledBy resolution, name derivation, and peer collection safety |
| src/Uno.UI/UI/Xaml/Automation/Peers/ComboBoxAutomationPeer.cs | Adjusts value exposure to match SelectionBoxItem |
| src/Uno.UI/UI/Xaml/Automation/Peers/AutomationPeer.skia.cs | Avoids raising property-changed events when no listener exists |
| src/Uno.UI/UI/Xaml/Automation/Peers/AutomationPeer.cs | Implements RaiseAutomationEvent for Skia via listener dispatch |
| src/Uno.UI/UI/Xaml/Automation/AutomationProperties.uno.cs | Expands ARIA role mapping and adds a role override attached property |
| src/Uno.UI/UI/Xaml/Automation/AutomationProperties.cs | Updates default for IsDataValidForForm |
| src/Uno.UI/FeatureConfiguration.cs | Adds config to auto-enable accessibility on WASM |
| src/Uno.UI/Accessibility/WebAssemblyAccessibilityShim.cs | Adds a shim class intended for tests on non-WASM platforms |
| src/Uno.UI.Toolkit/AutomationPropertiesExtensions.cs | Adds Toolkit attached property to override accessibility role (bridged to core) |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_RadioButton.cs | Excludes two tests from Android |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ProgressBar.cs | Updates listener stub to implement new interface method |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_AccessibleTextBox.cs | Adds accessibility runtime tests (currently ignored) |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_AccessibleSlider.cs | Adds accessibility runtime tests (currently ignored) |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_AccessibleListView.cs | Adds accessibility runtime tests (currently ignored) |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_AccessibleComboBox.cs | Adds accessibility runtime tests (currently ignored) |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_AccessibleCheckBox.cs | Adds accessibility runtime tests (currently ignored) |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_AccessibleButton.cs | Adds accessibility runtime tests (currently ignored) |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_AccessibilityFocus.cs | Adds focus-related runtime tests (currently ignored) |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_AccessibilityAnnouncements.cs | Adds announcement/live-region runtime tests (currently ignored) |
| src/Uno.UI.Runtime.Skia/AssemblyInfo.cs | Grants InternalsVisibleTo additional Skia runtime targets |
| src/Uno.UI.Runtime.Skia.Win32/UI/Xaml/Window/Win32WindowWrapper.cs | Initializes and serves UIA root provider via WM_GETOBJECT |
| src/Uno.UI.Runtime.Skia.Win32/Hosting/Win32Host.cs | Registers Win32 accessibility infrastructure |
| src/Uno.UI.Runtime.Skia.Win32/Accessibility/Win32AccessibilityPatterns.cs | Introduces COM pattern wrappers for Win32 UIA |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/ts/Runtime/LiveRegion.ts | Adds DOM live-region management for announcements |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/ts/Runtime/FocusTrap.ts | Implements modal focus trap with aria-hidden and tab wrapping |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/ts/Runtime/BrowserKeyboardInputSource.ts | Improves Tab handling when accessibility enable button is present |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/WasmCSS/uno.css | Adjusts semantics root positioning and visually-hidden styling |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/Accessibility/VirtualizedSemanticRegion.cs | Adds virtualization tracking for semantic regions |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/Accessibility/ModalFocusScope.cs | Adds managed modal focus-scope bridge to JS focus trap |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/Accessibility/LiveRegionManager.cs | Adds debounced/throttled live-region announcement coordination |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/Accessibility/FocusSynchronizer.cs | Adds bidirectional XAML↔browser focus synchronization |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/Accessibility/AccessibilityDebugger.cs | Adds accessibility debug mode/overlay plumbing |
| src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOWindow.m | Integrates custom accessibility tree into NSAccessibility |
| src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOAccessibility.h | Declares macOS accessibility element and native interop surface |
| src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac.xcodeproj/project.pbxproj | Adds new macOS accessibility source/header to build |
| src/Uno.UI.Runtime.Skia.MacOS/UI/Xaml/Window/MacOSWindowNative.cs | Initializes macOS accessibility only for initial window |
| src/Uno.UI.Runtime.Skia.MacOS/Native/NativeUno.cs | Adds P/Invoke declarations for new native accessibility functions |
| src/Uno.UI.Runtime.Skia.MacOS/Hosting/MacSkiaHost.cs | Registers macOS accessibility infrastructure |
| src/Uno.UI.Composition/AssemblyInfo.skia.cs | Adds InternalsVisibleTo for Uno.UI.Runtime.Skia |
| src/Uno.UI.Composition/AssemblyInfo.cs | Adds InternalsVisibleTo for Uno.UI.Runtime.Skia |
| src/Uno.Sdk/packages.json | Updates various SDK/package versions |
| src/SamplesApp/UITests.Shared/Windows_UI.Xaml_Automation/AutomationPropertiesExtensions_Role.xaml.cs | Adds sample code-behind for role override sample |
| src/SamplesApp/UITests.Shared/Windows_UI.Xaml_Automation/AutomationPropertiesExtensions_Role.xaml | Adds sample UI demonstrating role override |
| src/SamplesApp/UITests.Shared/UITests.Shared.projitems | Includes new sample files in project items |
| src/.gitignore | Adds ignore rules for local tooling and a native dylib artifact |
| specs/002-wasm-a11y-advanced/research.md | Adds advanced WASM a11y research notes |
| specs/002-wasm-a11y-advanced/quickstart.md | Adds advanced WASM a11y quickstart documentation |
| specs/002-wasm-a11y-advanced/plan.md | Adds advanced WASM a11y implementation plan |
| specs/002-wasm-a11y-advanced/data-model.md | Adds advanced WASM a11y data model documentation |
| specs/002-wasm-a11y-advanced/contracts/virtualization.ts | Adds TS interop contract documentation for virtualization |
| specs/002-wasm-a11y-advanced/contracts/modal-focus.ts | Adds TS interop contract documentation for modal focus |
| specs/002-wasm-a11y-advanced/contracts/live-regions.ts | Adds TS interop contract documentation for live regions |
| specs/002-wasm-a11y-advanced/contracts/focus-sync.ts | Adds TS interop contract documentation for focus sync |
| specs/002-wasm-a11y-advanced/checklists/requirements.md | Adds requirements checklist for advanced spec |
| specs/001-wasm-accessibility/spec.md | Adds base WASM a11y feature specification |
| specs/001-wasm-accessibility/research.md | Adds base WASM a11y research notes |
| specs/001-wasm-accessibility/quickstart.md | Adds base WASM a11y quickstart documentation |
| specs/001-wasm-accessibility/plan.md | Adds base WASM a11y implementation plan |
| specs/001-wasm-accessibility/data-model.md | Adds base WASM a11y data model documentation |
| specs/001-wasm-accessibility/contracts/accessibility-api.ts | Adds TS interop contract documentation for base spec |
| specs/001-wasm-accessibility/checklists/requirements.md | Adds requirements checklist for base spec |
💡 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-23005/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-23005/wasm-skia-net9/index.html |
|
The build 206543 found UI Test snapshots differences: Details
|
|
The build 206543 found UI Test snapshots differences: Details
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 93 out of 122 changed files in this pull request and generated 9 comments.
💡 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-23005/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-23005/docs/index.html |
|
The build 206588 found UI Test snapshots differences: Details
|
GitHub Issue: closes #
PR Type:
What is the current behavior? 🤔
What is the new behavior? 🚀
PR Checklist ✅
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information ℹ️