Skip to content

WASM-Skia: TextBox Ctrl+Delete caret and repeated-delete undo/redo are wrong (pass on other Skia targets) #23525

Open

Description

@nickrandolph

Summary

Two TextBox runtime tests fail deterministically on Skia-WASM while passing on every other
Skia target
(Desktop Win32/X11/macOS, Skia-Android) — they reproduce even in a healthy local
browser (real display + window manager), so this is a genuine WASM-specific TextBox editing bug,
not CI flakiness or render-loop throttling (which is tracked separately in #23524).

Repro (local, headful browser, 6/6 deterministic)

  1. Given_TextBox.When_Ctrl_Delete — Ctrl+Delete (delete-word-forward) on "lorem ipsum dolor"
    with the caret at index 0. Expected after one delete: text "ipsum dolor", SelectionStart == 0.
    On WASM, SelectionStart is 5 (and the delete-word boundary/caret handling is wrong).

  2. Given_TextBox.When_Repeated_Delete_Undo_Redo — text "hello", four forward Deletes then
    Undo. Expected first undo → "lo"; on WASM it yields "ello" — the delete operations are
    coalesced into the wrong undo granularity on WASM.

Both pass on Skia Desktop (verified 2/2 + the broader CI history shows them green on Linux/Windows/
macOS/Android Skia). Only the WASM TextBox key/undo path is affected.

Impact

Keeps the WASM-Skia runtime test stage red. These are excluded on SkiaWasm (via [GitHubWorkItem])
to unblock CI while the underlying TextBox bug is fixed; they remain active (and passing) on all other
Skia targets, so the exclusion is the only place lacking a regression guard for the fix.

Suggested area

Given_TextBox.skia.cs exercises the managed Skia TextBox key handling. The WASM divergence likely
sits in how key events / the undo stack are processed on the WASM runtime vs other Skia hosts.

Activity

  1. added
    kind/bug
    on Jun 23, 2026
  2. self-assigned this
    on Jun 24, 2026
  3. added 2 commits that reference this issue on Jun 24, 2026
  4. github-actions commented on Nov 10, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  5. added
    stale
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions