Repository navigation
fix(a11y): Keep live name updates off name-prohibited roles - #25646
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Claude finished @morning4coffe-dev's task in 18s —— View job Review summaryVerdict: Looks good overall, with minor fixes suggested. I reviewed by inspection only and did not build or run the tests.
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 240875 found UI Test snapshots differences: Details
|
|
@Mergifyio backport servicing/6.8 release/stable/6.7 |
✅ Backports have been createdDetails
Cherry-pick of 36f0b3c has failed: Cherry-pick of ec781db has failed: Cherry-pick of 0dfb0e2 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
Cherry-pick of 36f0b3c has failed: Cherry-pick of ec781db has failed: Cherry-pick of 0dfb0e2 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Claude finished @ajpinedam's task in 34s —— View job Review summaryVerdict: Looks good. I found nothing that blocks merge. I reviewed by inspection only. I did not build or run any tests, so nothing here is compile or runtime validation.
Low / non-blocking:
|
|
Also fixed in ec781db: on the previous head, any name change on a DataGrid cell (a Custom peer with GridItem, created as |
Xiaoy312
left a comment
There was a problem hiding this comment.
Thanks, all five earlier points are addressed, and having one ResolveGenericRole used by creation and both live handlers is a good shape. A few follow-ups are inline.
The PR description is now stale. It lists only the first two tests and doesn't mention:
ResolveGenericRole, now shared by creation and both live handlers- the named-region landmark case
- that the open dialog's role is preserved
- the creation-time change from
IsNullOrEmptytoIsNullOrWhiteSpace. A whitespace-named generic is now created asgenericinstead ofgroup, and a whitespace-named region/form is no longer exposed.
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 242016 found UI Test snapshots differences: Details
|
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Claude finished @ajpinedam's task in 24s —— View job Review summaryVerdict: Looks good. Nothing blocks merge. I reviewed by inspection only (Code review). I did not build or run any tests, so there is no compile or runtime validation here. I reviewed the latest head commit Issues: 0 high, 0 medium, 1 low.
Low / non-blocking:
Cross-cutting:
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 242060 found UI Test snapshots differences: Details
|
|
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. |
…r-25646 fix(a11y): Keep live name updates off name-prohibited roles (backport #25646)
GitHub Issue: internal
PR Type:
🐞 Bugfix
What changed? 🚀
On WebAssembly with accessibility enabled, a name that changes after its semantic node was created went straight to
aria-label, whatever the node's role was. This is common when accessibility is on during app start, because bindings resolve after the tree is built.TextBlockemitted as a bare<p>kept its original text, and the new text was added asaria-label. A paragraph is named by its content and prohibitsaria-label, so the paragraph now gets the new text as its content and noaria-label.createTextElementmarks these nodes withdata-uno-standalone-textso the update can find them.ResolveGenericRoleis now the only place that decides the role of a node built by the generic path. Creation, the Name and LandmarkType updates, and the post-layout ScrollViewer check all call it, so a node gets the same role whatever order its name, landmark type and scrollability arrive in. Which nodes the generic path built is recorded at creation. Factory nodes keep their own role: agridcellused to turn intogroupon a name change.genericnode becomesgroup, and goes back togenericwhen the name is cleared (WA-01).region/formlandmark that gets its name after creation is now exposed. That includes aTextBlocklandmark named by its text.role=dialogset by its focus trap.Navigationkeeps it instead of becomingregion.genericinstead ofgroup, and a whitespace-named region, form or scroll region is not exposed.Tests (Skia WASM):
When_Generic_Named_After_Creation_Then_Role_GroupWhen_Standalone_Text_Changes_Then_Paragraph_Text_Updated_Without_AriaLabelWhen_Generic_Name_Becomes_Whitespace_Then_Role_GenericWhen_Region_Landmark_Named_After_Creation_Then_Role_RegionWhen_Landmark_TextBlock_Gets_Text_Then_Role_RegionWhen_GridCell_Named_After_Creation_Then_Role_Stays_GridCellWhen_Standalone_Text_Gets_Name_Then_Paragraph_Has_No_RoleGiven_AccessibleScrollViewer.When_Navigation_ScrollViewer_Resized_Then_Role_Stays_NavigationGiven_AccessibleScrollViewer.When_Whitespace_Named_ScrollViewer_Resized_Then_No_RegionThe first two fail without this PR. Each test added during review failed on the PR head that came before its fix. The exception is
When_Standalone_Text_Gets_Name_Then_Paragraph_Has_No_Role, which guards the<p>case.Follow-ups, not in this PR:
aria-label, so the visible heading text can go stale.LandmarkTypeon a factory node writes the role mapped from its control type. For a grid cell that isgeneric, notgridcell.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code