openpencil/crates/op-host-web/tests
Kayshen-X cfb2435fa3 fix(web): recheck bridge token at fallback completion to close late-init window
The pass-1 late-init fix captured `managed` before the fallback reset was issued,
so a host `init` landing DURING the reset round-trip (up to ~30s with the XHR
timeout + retry) left `handle_init` firing an unregistered hook (no-op) while
`complete()` re-checked the stale flag -- neither emitting `ready` nor arming a
hook that could still fire. Wedge.

Decide readiness from the LIVE token in `complete()`: token present since capture
-> emit `ready` directly; token arrived during the round-trip -> run the managed
recovery inline; token still absent -> register the one-shot LATE_INIT_HOOK. The
inline and hook paths share one guarded `run_late_init_recovery` (tokened reset ->
emit_ready), so `ready` cannot double-fire. Add two source-order structural tests
(handle_init emits no `ready` directly; completion re-checks bridge_token live).
2026-07-17 04:18:11 +08:00
..
ci_workflow.rs fix(release): stop publishing unsigned macOS desktop tarball 2026-07-09 23:23:55 +08:00
cjk_font.rs fix(web): use browser fonts in canvaskit shell 2026-06-19 02:39:34 +08:00
dom_event_mapping.rs feat(editor): align rust web and desktop parity 2026-06-18 23:24:33 +08:00
paint_order.rs fix(web): refresh text rasters for effective scale 2026-07-12 09:13:49 +08:00
web_mount_event_wiring.rs fix(web): recheck bridge token at fallback completion to close late-init window 2026-07-17 04:18:11 +08:00