Repository navigation
feat(a11y): WinUI-parity accessibility fixes for Skia (Win32/macOS/WASM) - #23722
Conversation
|
Claude finished @morning4coffe-dev's task in 13m 36s —— View job Claude Code Review — PR #23722Verdict: Inline comments posted
Pre-existing defects surfaced by this reviewThese exist in the base branch (not introduced by this PR), so inline comments could not be anchored to diff lines. They are recorded here for the author to address in a follow-up.
Cross-cutting observations (no blocking issue)
Validation: Code review by diff inspection only. Runtime validation was not performed in this environment; maintainers should run |
There was a problem hiding this comment.
Pull request overview
This PR applies WinUI-3 parity fixes to Uno’s accessibility stack with a focus on Skia backends (Win32 UIA, macOS NSAccessibility, Skia-WASM ARIA/semantic DOM) and shared automation-peer plumbing, plus adds targeted runtime tests and SamplesApp demos to validate the new behavior.
Changes:
- Shared automation-peer improvements: landmark promotion for non-controls, wire
RaiseNotificationEvent/RaiseTextEditTextChangedEvent, routeRaiseStructureChangedEventvia the listener, and align disabled pattern actions withElementNotEnabledException(correct HRESULT). - Win32 UIA parity: richer property surface (relations, culture, isPeripheral, clickable point, annotations), correct event IDs, add missing UIA events (layout invalidated, window opened/closed), and WinUI-faithful structure-changed shaping/coalescing (ChildAdded/ChildRemoved/bulk).
- macOS + WASM parity: macOS
AutomationId→accessibilityIdentifierand structural refresh coalescing; WASM ARIA fixes for name-prohibitedrole=generic,aria-labelledbyprecedence overaria-label, and relation IDREF gating to avoid dangling references.
Reviewed changes
Copilot reviewed 45 out of 46 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Uno.UI/UI/Xaml/FrameworkElement.cs | Promote landmark-only FrameworkElements into the automation tree via a dedicated peer. |
| src/Uno.UI/UI/Xaml/Controls/AutoSuggestBox/AutoSuggestBox.cs | Raise LayoutInvalidated on suggestion-list changes (UIA client re-reads layout). |
| src/Uno.UI/UI/Xaml/Automation/Peers/ToggleSwitchAutomationPeer.cs | Throw ElementNotEnabledException when toggling a disabled ToggleSwitch. |
| src/Uno.UI/UI/Xaml/Automation/Peers/ToggleButtonAutomationPeer.cs | Throw ElementNotEnabledException when toggling a disabled ToggleButton. |
| src/Uno.UI/UI/Xaml/Automation/Peers/RepeatButtonAutomationPeer.cs | Align disabled invoke behavior with WinUI (ElementNotEnabledException). |
| src/Uno.UI/UI/Xaml/Automation/Peers/RadioButtonAutomationPeer.cs | Throw ElementNotEnabledException when selecting a disabled RadioButton. |
| src/Uno.UI/UI/Xaml/Automation/Peers/LandmarkTargetAutomationPeer.cs | New internal peer used for landmark promotion (reports Group). |
| src/Uno.UI/UI/Xaml/Automation/Peers/IAutomationPeerListener.cs | Add listener hook for TextEdit text-changed events. |
| src/Uno.UI/UI/Xaml/Automation/Peers/FrameworkElementAutomationPeer.cs | Implement culture + expose annotations via proper override. |
| src/Uno.UI/UI/Xaml/Automation/Peers/ButtonAutomationPeer.cs | Throw ElementNotEnabledException when invoking a disabled Button. |
| src/Uno.UI/UI/Xaml/Automation/Peers/AutomationPeer.partial.mux.cs | Route RaiseStructureChangedEvent into the listener (Skia). |
| src/Uno.UI/UI/Xaml/Automation/Peers/AutomationPeer.cs | Wire RaiseNotificationEvent + RaiseTextEditTextChangedEvent on Skia; extend Invoke helper to toggle/select. |
| src/Uno.UI/UI/Xaml/Automation/ElementNotEnabledException.cs | Set HRESULT to UIA_E_ELEMENTNOTENABLED (0x80040200) in constructors. |
| src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml.Automation.Peers/AutomationPeer.cs | Remove generated NotImplemented stub for text-edit event (now implemented elsewhere). |
| src/Uno.UI/Accessibility/AriaMapper.cs | Add missing control-type→role mappings; refine aria-haspopup=menu logic for menu-flyout buttons. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ProgressBar.cs | Update test stub listener to satisfy new listener method. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_WasmAriaRelations.cs | New WASM test: relation IDREFs only for semantic-node targets. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_WasmAria.cs | New WASM tests: named generic promoted to group; aria-labelledby suppresses aria-label. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_TextEditTextChangedEvent.cs | New test: TextEditTextChanged event reaches the listener (Skia). |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_StructureChangedEvent.cs | New tests: null-child argument validation + listener routing for structure changes. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_NotificationEvent.cs | New test: notification event reaches the listener (Skia). |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_LandmarkPromotion.cs | New tests: landmark promotion precedence and behavior across platforms. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_DisabledActionException.cs | New tests: disabled pattern actions throw with correct HRESULT; native activation helper swallows. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_AutomationRelations.cs | New tests: DescribedBy/ControlledPeers are surfaced by peers. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_AutomationPeer_InvalidatePeer.cs | Update test listener to satisfy new listener method. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Automation/Given_AriaMapper.cs | New tests: role mappings + haspopup behavior (DropDownButton/SplitButton vs Expander). |
| src/Uno.UI.Runtime.Skia/Accessibility/SkiaAccessibilityBase.cs | Resolve EventsSource before property routing; add TextEdit event hook (no-op base). |
| src/Uno.UI.Runtime.Skia/Accessibility/AccessibilityRouter.cs | Route new TextEdit listener method to the resolved backend. |
| src/Uno.UI.Runtime.Skia.Win32/Accessibility/Win32UIAutomationInterop.cs | Add UIA constants + P/Invokes (clients listening, text edit event), fix miskeyed event IDs. |
| src/Uno.UI.Runtime.Skia.Win32/Accessibility/Win32RawElementProvider.cs | Serve relations, culture/peripheral/clickable point, annotations, and custom-landmark mapping. |
| src/Uno.UI.Runtime.Skia.Win32/Accessibility/Win32Accessibility.cs | WinUI-faithful structure-changed coalescing and new automation event mappings (layout/window/textedit). |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/ts/Runtime/Accessibility.ts | Ensure aria-labelledby precedence over aria-label during live updates. |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/Accessibility/WebAssemblyAccessibility.cs | Promote named role=generic to group to avoid ARIA name-prohibited role. |
| src/Uno.UI.Runtime.Skia.WebAssembly.Browser/Accessibility/SemanticElementFactory.cs | Suppress flattened name when aria-labelledby exists; gate relation IDREFs on semantic-node existence. |
| src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOAccessibility.m | Add accessibilityIdentifier; sync radio AXValue on selection; expose scrollbar inc/dec actions. |
| src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOAccessibility.h | Add unoIdentifier property + native update function declaration. |
| src/Uno.UI.Runtime.Skia.MacOS/Native/NativeUno.cs | Add P/Invoke for updating the macOS accessibility identifier. |
| src/Uno.UI.Runtime.Skia.MacOS/Accessibility/MacOSAccessibility.cs | Coalesce children-changed posts; push AutomationId into native identifier; resolve EventsSource for events. |
| src/SamplesApp/SamplesApp.Samples/Windows_UI.Xaml_Automation/AutomationProperties_StructureAndProps.xaml.cs | New sample: dynamic structure changes, annotations, layout invalidated, text-edit event raising. |
| src/SamplesApp/SamplesApp.Samples/Windows_UI.Xaml_Automation/AutomationProperties_StructureAndProps.xaml | New sample UI for structure/property/event probes. |
| src/SamplesApp/SamplesApp.Samples/Windows_UI.Xaml_Automation/AutomationProperties_Relations.xaml.cs | New sample: set DescribedBy/ControlledPeers in code-behind. |
| src/SamplesApp/SamplesApp.Samples/Windows_UI.Xaml_Automation/AutomationProperties_Relations.xaml | New sample UI for relation properties. |
| src/SamplesApp/SamplesApp.Samples/Windows_UI.Xaml_Automation/AutomationProperties_Landmark.xaml.cs | New sample: landmark promotion scenarios. |
| src/SamplesApp/SamplesApp.Samples/Windows_UI.Xaml_Automation/AutomationProperties_Landmark.xaml | New sample UI demonstrating landmarks. |
| specs/004-a11y-parity-remediation/plan.md | Detailed remediation plan capturing findings, parity rationale, and validation notes. |
| specs/004-a11y-parity-remediation/macos-verification.md | macOS-only verification steps for changes not runtime-testable on Windows. |
💡 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-23722/wasm-skia-net9/index.html |
|
Claude finished @morning4coffe-dev's task in 11m 12s —— View job Review — WinUI parity accessibility fixes (PR #23722)Verdict: Inline findings (new code in this PR)
Pre-existing defects (not introduced by this PR — track separately)These were present in
Recommended follow-up: file a separate issue for the Core implementation assessment
Validation evidence (by inspection): Code review only. Compile and runtime validation evidence is not available in this context; the Review by Claude — claude-sonnet-4-6. Pre-existing defects were not introduced by this PR. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23722/wasm-skia-net9/index.html |
|
Claude finished @morning4coffe-dev's task in 11m 28s —— View job Claude Code Review — PR #23722Verdict: Inline findings (new code in this PR)
Pre-existing defects (in
|
| Sev | File | Defect |
|---|---|---|
| High | Win32RawElementProvider.cs:60 |
_runtimeId = _nextRuntimeId++ — non-atomic read-modify-write on a shared static. UIA COM arrives on a background thread (ProviderOptions.UseComThreading), so two providers created concurrently can get the same runtime ID. Fix: Interlocked.Increment(ref _nextRuntimeId). |
| Medium | MacOSAccessibility.cs:157,186 |
OnNativeIncrement / OnNativeDecrement are missing the IsEnabled guard that OnNativeInvoke (line 83) already carries. VoiceOver can adjust a disabled slider or scrollbar via these callbacks; the fix is a single if (owner is Control { IsEnabled: false }) return; guard. Since this PR already modifies the file and explicitly registers these callbacks via uno_accessibility_set_range_callbacks, it's a low-cost fix to include here. |
| Low | Win32Accessibility.cs:970 |
Dead if (target is null) guard in NotifyNotificationEvent: target is initialized from _rootProvider (non-nullable field) and immediately overwritten only if a matching provider exists — the null branch can never fire. |
| Low | Win32RawElementProvider.cs:991-1004 |
Stacked duplicate /// <summary> XML doc blocks on FindParentProvider(); merge into one. |
New code assessment
| Area | Assessment |
|---|---|
Win32Accessibility.cs — NotifyStructureChangedEvent (new override) |
Correct. ExplicitType field on PendingStructureChange preserves app-raised event types through the coalescing path; explicit changes bypass the bulk-threshold grouping and are raised directly. |
Win32Accessibility.cs — FlushStructureChanges with explicit path |
Correct. Two-pass grouping (explicit first, then thresholded) faithfully reflects WinUI semantics. |
MacOSAccessibility.cs — QueueChildrenChanged |
Correct. _childrenChangedPostQueued flag coalesces VoiceOver structural refreshes into one per UI tick; IsAccessibilityEnabled guard in the callback protects against a disposed window racing a queued notification. |
MacOSAccessibility.cs — automationId → accessibilityIdentifier |
Correct. Now passes null (not empty string) when AutomationId is absent so the identifier is cleared rather than stale-retained. |
WebAssemblyAccessibility.cs — LandmarkTypeProperty live-update |
Correct. Clearing a landmark from an element now falls through to the base role, preventing a stale landmark role from persisting in the DOM. |
WebAssemblyAccessibility.cs — role=generic → role=group (WA-01) |
Correct. Matches ARIA 1.2 name-prohibited restriction; promotes only when hasAccessibleName is true. |
SemanticElementFactory.cs — IDREF gating (WA-02/WA-04) |
Correct. HasSemanticElement gate prevents dangling IDREFs; LabelledBy suppresses aria-label at creation time. |
Accessibility.ts — updateAriaLabel / updateAriaLabelledBy |
Correct. Both sides of the exclusion are handled (set one → clear other), covering out-of-order live updates. |
ElementNotEnabledException HRESULT |
Correct. UIA_E_ELEMENTNOTENABLED (0x80040200) set in all three constructors. |
| Test coverage | Given_StructureChangedEvent, Given_DisabledActionException, Given_NotificationEvent, Given_TextEditTextChangedEvent, Given_LandmarkPromotion, Given_AutomationRelations, Given_WasmAria*, Given_AriaMapper — good per-feature coverage. Async tests are correctly async Task; sync tests are correctly void. |
Validation: Code review by diff inspection. Runtime validation not performed in this environment. Maintainers should run /runtime-tests Given_StructureChangedEvent,Given_DisabledActionException,Given_NotificationEvent,Given_LandmarkPromotion on Skia Desktop before merging.
|
Claude finished @morning4coffe-dev's task in 10m 55s —— View job PR Review — WinUI-parity accessibility fixes (PR #23722)Verdict: Tasks
Inline finding (new code in this PR)
Pre-existing defects (in
|
| Sev | File | Defect |
|---|---|---|
| High | Win32RawElementProvider.cs:60 |
_runtimeId = _nextRuntimeId++ — non-atomic read-modify-write on a static int accessed from the UIA COM thread (ProviderOptions.UseComThreading). Two providers created concurrently can get the same runtime id, corrupting Narrator's element identity. Fix: Interlocked.Increment(ref _nextRuntimeId). Recommend a follow-up issue. |
| Medium | MacOSAccessibility.cs:~157,186 |
OnNativeIncrement / OnNativeDecrement (pre-existing) are missing the if (owner is Control { IsEnabled: false }) return; guard that OnNativeInvoke (line 83) carries. VoiceOver can silently adjust a disabled slider/scrollbar. |
| Low | Win32Accessibility.cs:~970 |
Dead null guard in NotifyNotificationEvent — target is initialised from the non-nullable _rootProvider field and only overridden by a is { } (non-null) pattern match, so if (target is null) return; can never fire. |
| Low | Win32RawElementProvider.cs:991–1004 |
Duplicate stacked /// <summary> XML doc blocks on FindParentProvider(). |
Core implementation assessment
| Area | Assessment |
|---|---|
Win32Accessibility.cs — StructureChanged coalescing |
Correct. Add/remove pair cancellation (by (child, container) key via ReferenceEquals) matches WinUI's AutomationEventsHelper. CleanupProviders correctly scrubs the pending-added entry before the early-return so no stale Added leaks to flush. BulkChildrenLimit = 20 is the right threshold. |
Win32Accessibility.cs — NotifyTextEditTextChangedEvent |
Correct. AutoCorrect/Composition/CompositionFinalized-only filter (via AutomationTextEditChangeType) matches WinUI's filter; routes to provider correctly. |
LandmarkTargetAutomationPeer.cs |
Correct: internal partial class, returns AutomationControlType.Group, GetClassNameCore returns "LandmarkTarget" — matches WinUI. |
ElementNotEnabledException.cs |
Correct. HRESULT 0x80040200 (UIA_E_ELEMENTNOTENABLED) set in all three constructors. |
AutomationPeer.partial.mux.cs — RaiseStructureChangedEvent |
Correct. AutomationPeer? child (nullable), guard throws ArgumentNullException for ChildRemoved-with-null as required. |
SemanticElementFactory.cs — WA-02/WA-04 |
Correct. aria-labelledby suppresses aria-label at create time; IDREF gating via HasSemanticElement() prevents dangling references. |
Accessibility.ts — updateAriaLabel/updateAriaLabelledBy |
Correct. Both sides of the exclusion (set one → clear the other) are handled. |
Test files — async/void discipline |
Consistent with runtime-tests.md rule: tests that await are async Task; synchronous tests are void. |
Given_WasmAria / Given_WasmAriaRelations |
Correctly gated with [PlatformCondition(ConditionMode.Include, RuntimeTestPlatforms.SkiaWasm)]. |
Validation: Code review by diff inspection. Runtime validation is not available in this environment; maintainers should run /runtime-tests Given_StructureChangedEvent,Given_DisabledActionException,Given_NotificationEvent,Given_TextEditTextChangedEvent,Given_LandmarkPromotion on Skia Desktop before merging.
|
Claude finished @morning4coffe-dev's task in 8m 38s —— View job Claude Code Review — PR #23722Verdict: Issues resolved since the last review
Inline finding on new code
Pre-existing defects (not introduced by this PR — need separate tracking)These were present in
Core implementation — assessment
Validation: Code review by diff inspection. Runtime validation not performed in this environment — run |
|
Claude finished @morning4coffe-dev's task in 7m 10s —— View job Claude Code Review — PR #23722Reviewing WinUI-parity accessibility fixes for Skia (Win32/macOS/WASM)
Verdict: Inline findings (2 posted)
Prior-round fixes confirmed
Pre-existing defects (not introduced by this PR — track separately)
Cross-cutting observations (not blocking)
Validation: Code review by diff inspection. Runtime validation not performed in this environment — maintainers should run |
|
Claude finished @morning4coffe-dev's task in 4m 57s —— View job Claude Code Review — PR #23722Verdict: Tasks
What changed since the last reviewTwo focused commits plus a no-op merge from master (
Inline finding (1 posted)
Not re-flagged (already resolved by this push)The High pre-existing Validation: Code review by diff inspection ( |
|
Completed the WinUI source/runtime reconciliation and resolved the remaining review thread. The branch now includes master through Code review assessment: corrected the Win32 Runtime validation: native WinUI (Windows App SDK 2.3.1) and the corrected source-built Win32 app produced identical 18-record UIA event/culture traces and matching API outcomes/HRESULTs. The final merged desktop app passed 78 targeted cases; the published Skia-WASM app passed 44, including following-sibling relationship targets, removal/reinsertion, and clearing all three relation attributes. The macOS native AX behavior remains subject to the platform-specific verification steps already documented in the plan; it was not run on this Windows machine. Fresh CI is running on |
There was a problem hiding this comment.
🔵 Needs a closer look
The changes span multiple accessibility backends and low-level interop paths (Win32 UIA bridge, WASM ARIA, macOS native), making it high-impact despite added tests.
Review details
- Files reviewed: 55/56 changed files
- Comments generated: 1
- Review effort level: Lite
|
Claude finished @morning4coffe-dev's task in 1m 9s —— View job Claude Code Review — PR #23722Verdict: Tasks
What changed since the last reviewSingle commit, one line: adds This directly resolves the Medium finding from the prior round: the test asserted that The fix is minimal, correctly scoped, and doesn't touch the still- Not re-checked this roundThe pre-existing High Validation: Code review by diff inspection (single-commit, single-line diff). Maintainers should run |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-23722/docs/index.html |
There was a problem hiding this comment.
🔵 Needs a closer look
The changes span multiple accessibility backends and core automation routing/interop behavior, so final validation should be confirmed by a human reviewer across the impacted platforms and scenarios.
Review details
- Files reviewed: 55/56 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23722/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-23722/docs/index.html |
|
/azp run Uno.UI - CI Retry requested without source changes. The transient WASM centered-card failure is green on attempt 2 (and passed the focused local reproduction). Android's touch-focused scroll failure also occurred on master build 232290 and passed its retry. The remaining failures are Android |
|
No pipelines are associated with this pull request. |
|
CI follow-up: the WASM shard is now green on its retry. The remaining reported failures in build 232371 are Android I could not queue the targeted retries with the available credentials: GitHub's check-rerequest endpoint returned 404, and the Azure Pipelines bot responded "No pipelines are associated with this pull request." An Azure-authorized maintainer needs to retry the failed jobs in build 232371. No code or assertions were changed just to suppress these platform failures. |
|
The build 232371 found UI Test snapshots differences: Details
|
|
Final CI result for build 232371: completed with failures. WASM and tvOS are now green. Android shard 0 still fails |
|
Local Android A/B comparison completed without changing source or weakening assertions.
Both used the same isolated Android 34 Google Play x86_64 emulator, 1280x800 at 160 dpi, 256 MB VM heap, and clean app data for each of three runs. I verified that each CI merge's Git tree exactly equals the corresponding PR/base tree before using its APK; both APKs use the same target SDK and architectures. The five cases cover all three popup-above variants, touch-focused scrolling, and |
|
Tick the box to add this pull request to the merge queue (same as
|
|
Final readiness update: the Android shard-1 retry has passed and CI is now green on |
Accessibility/automation parity fixes vs WinUI 3, focused on the Skia backends (Win32 UIA, macOS NSAccessibility, WebAssembly ARIA) and the shared automation-peer core. Each change was verified against the WinUI 3 source and validated at runtime (FlaUI UIA probes on Win32, Playwright DOM assertions on a published WASM head, and runtime tests).
Shared core
RaiseNotificationEventon Skia; map missing control roles + menuhaspopup.ElementNotEnabledon disabled pattern actions; routeRaiseStructureChangedEventto the listener.EventsSourcein shared routing.RaiseTextEditTextChangedEvent(was a stub).Win32 (UIA)
ChildAdded/ChildRemoved(per-child, bulk thresholds, symmetric add/remove cancel-out, skip collapsed).DescribedBy/ControllerFor/FlowsTo/FlowsFrom,IsPeripheral,Culture,ClickablePoint, andAnnotations.WindowOpened/WindowClosedandLayoutInvalidated(AutoSuggestBox); correct two miskeyed UIA event IDs.macOS (NSAccessibility)
AutomationIdasaccessibilityIdentifier; keep radio/tabAXValuein sync.WebAssembly (ARIA)
role=generic+ double naming; enforcearia-labelledbyprecedence overaria-label.Adds runtime tests and SamplesApp samples; macOS-only behavior has a verification guide under
specs/004-a11y-parity-remediation/.Ready for review. The source/runtime reconciliation and follow-up corrections are documented in
specs/004-a11y-parity-remediation/plan.md.Win32 UIA bridge (second parity pass)
WM_GETOBJECTobject id toUiaReturnRawElementProviderso MSAA clients are served by the UIA bridge; flush the UIA hwnd map on window destroy.not supportedvalue for unimplemented text attributes.[JSImport]declarations.