Skip to content

[WASM] Allow disabling accessibility again after it was enabled #24635

Closed

Description

@MartinZikmund

What would you like to be added? 💡

A way to turn Skia WebAssembly accessibility off again after it has been enabled (via the "Enable accessibility" button or EnableAccessibility()), tearing down the semantic DOM and every hook it installed, so it can later be enabled again.

Why is this needed? 🤔

Accessibility is a one-way latch today: WebAssemblyAccessibility.EnableAccessibility() has no counterpart. In the runtime tests, the first Given_Accessible* / Given_WasmAria* test leaves it on for the rest of the WASM app, so every later test in that shard:

  • pays for the semantic DOM on every visual change, focus move and scroll, and
  • sees different focus behavior. Focusing a TextBox bounces focus (Focused → Normal → Focused, FocusState Keyboard), because the semantic node steals DOM focus from the hidden text input.

That has already caused flaky failures, e.g. Given_ElementTheme.When_Editable_ComboBox_Focused_In_Dark_Theme_Text_Is_Light failing in WASM shard 1 only when an accessibility test ran earlier in the same app (see #24600 / #24601).

Renderer 🎨

  • Skia
  • Native

For which platforms 📱💻🖥️

  • WebAssembly

Anything else we need to know? 💬

The accessibility runtime tests should disable it again after each test, so no test depends on (or is slowed down by) an earlier one having enabled it.

Activity

  1. added
    kind/enhancement
    triage/untriaged
    on Sep 24, 2026
  2. Jen-Uno commented on Sep 30, 2026

    @Jen-Uno
    Contributor

    QA: closing out without a manual pass. The fix in #24636 ships with automated tests (Given_AccessibleAria.cs, Given_AccessibleButton.cs, Given_AccessibleCheckBox.cs and 12 more) that exercise the change.

    If you still see this behaviour on a build that includes that PR, please reopen or comment here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/enhancementtriage/untriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions