You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[WASM] Allow disabling accessibility again after it was enabled #24635
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.
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.
Activity
Jen-Uno commentedon Sep 30, 2026
QA: closing out without a manual pass. The fix in #24636 ships with automated tests (
Given_AccessibleAria.cs,Given_AccessibleButton.cs,Given_AccessibleCheckBox.csand 12 more) that exercise the change.If you still see this behaviour on a build that includes that PR, please reopen or comment here.