Files
magpie/internal/gui
yetone 0587f1da90 gui: the visibility test counts a hiding only once magpie's signal is in (#6203)
TestPanelHiddenByWailsMarksPageOutOfSight failed on mica (macOS 26) with
marked=false play="running". WebKit fired a visibilitychange of its own as
the panel ordered out, hidden by its own value, before magpie's hide
signal reached the page. The page took it for the hiding, sent /hidden,
and the host showed the panel again before the page was ever told.

The page now records a hiding, and sends /hidden, only while magpie's
signal says hidden (outOfSight). Test-only change; app code untouched.

Run on mica at this tree:
- before: -count=6 of both window visibility tests, 4 failed, all
  marked=false play="running"
- after: -count=8 of both, ok (16 of 16)
- broken by hand: pageHiddenJS = "void 0" (no hide signal) -> both
  tests red, "timed out waiting for the page to see itself hidden";
  restored
2026-11-12 10:03:46 +08:00
..
…
…
…
…
…