Repository navigation
feat(a11y): add mobile automation support - #23935
Conversation
|
Claude finished @morning4coffe-dev's task in 6m 12s —— View job Code ReviewTasks:
Verdict: fix-first — one confirmed compilation bug blocks the PR; two code-style issues should be resolved before merge. Issues (3 inline comments posted)🔴 Critical — compilation error on Android and iOS (×2)
🟡 Moderate — brace-style violations in
|
|
Claude finished @morning4coffe-dev's task in 7m 29s —— View job Code ReviewTasks:
Verdict: fix-first — both compilation blockers from the previous review are resolved; three code-quality issues remain that will cause CI failures or are fragile. What was fixed ✅
Issues still open (3 inline comments posted)🟡 Brace-style — lambda guards in
|
|
Claude finished @morning4coffe-dev's task in 12m 10s —— View job Claude Code Review — Round 3 FinalPR #23935 · feat(a11y): add mobile automation support Verdict: ✅ SHIPAll round-1 and round-2 blockers are resolved. The updated diff (rounds of commits since the last review) introduced no new significant issues. Previously Flagged Issues — Status
Round 3 Scan — No New IssuesThe following areas were reviewed against the new commits (
Test file (
Validation Evidence
Round 3 of 3 · all blockers resolved · ready to merge |
|
Claude encountered an error after 24s —— View job I'll analyze this and get back to you. |
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
|
Claude encountered an error after 18s —— View job I'll analyze this and get back to you. |
|
Claude encountered an error after 19s —— View job I'll analyze this and get back to you. |
|
Claude encountered an error after 21s —— View job I'll analyze this and get back to you. |
|
Claude encountered an error after 15s —— View job I'll analyze this and get back to you. |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
RichEditBox exposes no Value pattern (WinUI's windowless RichEdit host hides it), so the mobile bridges reported it read-only and relied on owner-type special cases. Read editability from the Text pattern's IsReadOnly attribute when there is no Value pattern, and only advertise SetValue when the Value pattern can set text. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
Mobile selection reads and writes went through the UIA selection range, which has no direction, so a backward RichEditBox selection came back forward. Use the editor's own selection like the TextBox path does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
The mobile copy, cut and paste actions only recognised TextBox, so RichEditBox never offered them. Route them to the editor's clipboard methods with the same enabled, focus and read-only gates. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
Native word, line and paragraph movement split RichEditBox text with the plain-string heuristics, which disagree with the units its UIA range expands to. Take the segments from the document's TOM ranges instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
Touch exploration returned the RichEditBox node as soon as the hit element mapped to one, so its hyperlink and image children could not be reached by touch. Check the element's ownerless child peers first. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
RichEditBox reports placeholder, read-only and spell-check changes through the text-control side channel only, which macOS and WASM handle but Android and iOS ignored, leaving stale native nodes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
AccessibilityValue only read the Value pattern, so VoiceOver read an empty RichEditBox. Fall back to the Text pattern's document text for edit controls without a Value pattern. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
Read-only and multiline state, backward selection, TOM word segments, clipboard availability and the peer tree's text objects. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
RichEditBox spelling errors are Text pattern annotations. As separate nodes they duplicated the editor's text during swipe navigation and won Android hit tests over the editor. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
IsReadOnly, annotation, link and selection attributes no longer compute the character and paragraph format of the whole range first. Mobile node rebuilds read IsReadOnly on every text change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23935/wasm-skia-net9/index.html |
|
Claude encountered an error after 1s —— View job I'll analyze this and get back to you. |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-23935/docs/index.html |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23935/wasm-skia-net9/index.html |
|
The build 238972 found UI Test snapshots differences: Details
|
GitHub Issue: closes #23934
Note
Bottom of a GitHub stack (stack #24389), based on
master. Review all commits. This PR no longer depends on #25184. Each PR above targets the branch of the PR below it, so GitHub shows only its own changes.Stack, bottom to top:
NamePropertyMerge flow: merge bottom-up. When a lower PR merges and its branch is deleted, GitHub retargets the next PR onto
master. If the lower PR was squash-merged, rebase the next branch ontomasterfirst (git rebase --onto origin/master <old lower head>), so the squashed commits aren't replayed.PR Type:
✨ Feature
What changed? 🚀
This adds first-class accessibility and automation support for the Skia Android and iOS targets:
The implementation follows the MUX peer/provider sources and the native
AccessibilityNodeInfo/UIAccessibilitycontracts: an item-keyed sharedItemAutomationPeeris reused across child/pattern providers, while native occurrences retain distinct identities and occurrence-specific geometry. It also includes word/line/paragraph granularity, XAML-to-native focus, app-private action IDs, UIKit scrolling announcements, iOS 17+ assertive announcements andupdatesFrequently.#23722 merged on September 8 and supplies the shared remediation. This PR now targets
master; the former stack/trigger restriction is no longer current.Review follow-up
Rebase onto master (RichEditBox)
Rebased onto
masterat2c706a83b1d, which brings Skia RichEditBox support (#23924) and the Generic.xaml update (#21513; the only extra conflict wasSplitView, where master now usesGetTemplateChild). Both PRs changed the old Android helper, so RichEditBox accessibility now goes through this PR's shared peer tree:UnoExploreByTouchHelperkeeps this PR's version, with master's RichEditBox logic rebuilt on the new model.SkiaAccessibilityBase,MacOSAccessibility,TextRangeAdapter,WebAssemblyAccessibility,AccessibilityRouterandResources.reswmerge both sides. Master's text-control state hook now registers only once a bridge is enabled.IsReadOnlyattribute. RichEditBox exposes no Value pattern (WinUI doesn't either), so Android no longer offersSET_TEXTfor it. This is deliberate.IsReadOnly, annotations, link and selection no longer compute the formatting of the whole document first.Moved up the stack
This PR used to sit on #25184 and carry the FindName and flyout-name fixes. It is now based on
master, and those commits moved, unchanged, to their own PRs:Name=is registered in compiled namescopes. Part of AlignFindNamewith WinUI #21129.FlyoutPresenterandMenuFlyoutPresentertake their AutomationId from the owning flyout'sDependencyObject_Name, as WinUI'sGetOwnerNamedoes. It needs fix: Declare Name on DependencyObject like WinUI #25184. The MenuFlyout-only generator stand-in (__UnoXamlName) this PR used to carry is gone, not moved.Known gap in this PR
A
Flyout's orMenuFlyout's presenter AutomationId does not come from the flyout'sx:Name, whether the flyout comes from compiled XAML orXamlReader.MenuFlyoutPresenter.GetOwnerNamereturnsnullhere. ReadingFrameworkElement.NamePropertyon aMenuFlyout, asmasterdoes, throws under property owner validation. The earlier MenuFlyout-only generator stand-in (__UnoXamlName/MarkupHelper.GetXamlName) was removed from the stack. Workaround: setAutomationProperties.AutomationIdin the presenter style. Fixed in #25308.Current validation
Restack onto
master(a00b15d2d30), head803adde9f9a, with the MenuFlyout name stand-in removed. One conflict: anAppleUIKitHostdoc comment thatmasterhad already corrected;master's wording was kept. Compile (strict, no fast-dev flag,net10.0):Uno.UIbuilds with 0 errors. Runtime (Skia Desktop):Given_MenuFlyoutplus allGiven_MobileAccessibility*classes gave 104 passed, 128 skipped (mobile-only), 0 failed. Compared with the earlier head745a2dcd043, this PR's patch differs only by the stand-in removal: the generator emission, theMarkupHelperhelpers, theGetOwnerNameread, and the compiled-XAML AutomationId test and its page, which moved to fix(a11y): Use owning flyout name for presenter AutomationId #25308.Previous round: results below were recorded before this restack.
Previous round (before the restack), Skia Desktop runtime: 1926 tests across the Markup, FindName, a11y/mobile tree, RichEditBox, TextBox, PasswordBox, ComboBox, AutoSuggestBox, SplitView, CalendarDatePicker, Control, FrameworkElement, xLoad, VisualStateManager, MenuFlyout and Flyout suites: 1851 passed, 43 skipped, 2 inconclusive, 30 failed. All 30 failures also fail without these changes (display-scale layout assertions). Android, iOS, WASM, macOS and Win32 runtimes built strict with 0 errors; Android and iOS runtime tests were compiled but not run on a device.
Compile: SDK10 desktop build passes with zero warnings/errors; Android APK and UITest compilation pass with documented resource/NUnit-engine warnings. APK v2/v3 signatures are verified.
Runtime (desktop): 24 shared peer, grouped-mutation, occurrence-geometry and modal cases pass with no skips.
Runtime (owned Android API 34): nine native contract cases and 15 UIAutomator/screenshot fixtures pass. The original duplicate-occurrence, live-region and submenu regressions are included.
Screenshot failure contract: eight deterministic error/timeout cases and the real repeated-capture case pass. A later successful capture cannot erase the first failure.
Run boundary: the full 15-fixture suite passed before the final client-polling-only correction. After that correction, the UITest project was rebuilt and the eight deterministic cases plus the native repeated-capture case passed; the full 15-fixture suite was not rerun again.
The private emulator, ADB server, writable state and test identities were isolated on Q:. Only owned processes were stopped; existing user emulators and global ADB were preserved.
The local Android build deliberately disables AOT, managed trimming, Java shrinking and optimized JNI marshaling. Native iOS execution, release-optimization behavior and manual VoiceOver/TalkBack use are not claimed by these checks.
Previously recorded validation
microsoft/microsoft-ui-xamlat439bda90582f7892ca595a193f55dbfc6ae2010c. UIKit projection now honors peer AutomationId/Culture overrides, weak peer-occurrence identity, virtual children, live popup presentation, and ancestor scrolling. Integer IDs remain exact, with pre-cast Int32 bounds.net10.0-windows10.0.19041.0), and AppleUIKit backend (net10.0-ios26.0) build. The Windows native test build uses a short worktree path to avoid PRI/MAX_PATH failures. Backend-only fixtures use existing.skia.csscoping; public WinUI contract tests remain compiled.The local Android APK deliberately disables AOT, managed trimming, Java shrinking, and optimized JNI marshal methods. It is native behavioral evidence, not release-shrinker/AOT validation. Its SHA-256 is
903C8E1B5C6A05BD327C02A13776BB91DE8686584D3455131D454B955709C3F7.Remaining gates: fresh exact-head CI and reviewer approval remain required. Earlier Windows AppleUIKit compilation is not native iOS/VoiceOver/XCUITest runtime evidence. No parent merge or branch-protection bypass has been performed.
PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_017TzDba3gSK3uYpvLmmBmaa