Closed Bug 2036721 Opened 13 days ago Closed 9 days ago

[wpt-sync] Sync PR 59616 - [Platform-provided behaviors] Accessibility integration

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 59616 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/59616
Details from upstream follow.

Ana Sollano Kim <ansollan@microsoft.com> wrote:

[Platform-provided behaviors] Accessibility integration

This CL:

  • Automatically assigns the default ARIA role provided by the behavior
    ("button") within the ax tree.
  • Makes elements implicitly focusable and includes them in the default
    tab order by setting the default tab index to 0.
  • Handles keyboard activation by converting Enter and Space key events
    into simulated clicks when the behavior is present.
  • Makes DefaultAriaRole to return ax::mojom::blink::Role enums.

These changes ensure that custom elements with submission capabilities
buttons are identifiable by assistive technologies and reachable via
keyboard navigation without requiring manual attribute management. Tests
are added to verify these changes.

Explainer:
https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/PlatformProvidedBehaviors/explainer.md
Design doc:
https://docs.google.com/document/d/1LA1hhzxmi4OmZoGtIdnwvL3g7y48YjXTOoUvFtxFugE/edit?usp=sharing

Bug: 486928684
Change-Id: I42fb2cf6a5717d67def045dc5a36a8e856f78bad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7762931
Reviewed-by: Jacques Newman \<janewman@microsoft.com>
Reviewed-by: Dan Clark \<daniec@microsoft.com>
Commit-Queue: Ana Sollano Kim \<ansollan@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1624240}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 20 tests

Status Summary

Firefox

OK : 15
PASS : 107[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 109[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 2
ERROR: 2[GitHub] 3[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 2
PASS : 43
FAIL : 8

Safari

ERROR: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
You need to log in before you can comment on or make changes to this bug.