From 76da07f3fd7cec87b1336d05eee21185c31a7d9c Mon Sep 17 00:00:00 2001 From: astar76 Date: Wed, 18 Nov 2026 04:09:17 -0600 Subject: [PATCH] S060: Escape ends picture in picture, the page gets the PiP window's keyboard, three-round PiP smoke Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 +- Plans/09 Fix round/S060-pip-focus.md | 10 +++--- Plans/INDEX.md | 2 +- docs/PROGRESS.md | 7 +++++ src/actions.rs | 3 ++ src/app.rs | 5 +++ tests/smoke/pip-loop-driver.sh | 8 +++++ tests/smoke/pip-loop.txt | 46 ++++++++++++++++++++++++++++ 8 files changed, 76 insertions(+), 7 deletions(-) create mode 100644 tests/smoke/pip-loop-driver.sh create mode 100644 tests/smoke/pip-loop.txt diff --git a/CLAUDE.md b/CLAUDE.md index 5f27db0..0c7154d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -77,7 +77,7 @@ Never modify: `~/Documents/Apps/Nacre` (the original Python Nacre, reference onl | `tools/mem-run.sh [ENV=v…]` + `tools/smoke.sh tests/smoke/slow.txt` (+ `python3 tests/smoke/slow/server.py &`), `bg-tabs.txt` | Nacre's PSS/CPU on the tune sites (hidden, internet; `NACRE_WK_PAGE_CACHE=1`, `NACRE_WK_CACHE_MODEL=viewer` as variants); slow-line visit/revisit/reload/back with a paced local server (offline, `first/revisit/reload/back.json`, `log.json`); hidden tab gets no frames and slow timers | now (S052) | | `tools/engine-test/run.sh chromium\|webkit` + `analyze.py` | engine comparison: one browser visible on DP-1, throwaway profile, sites from `sites.txt`, per-second RAM (PSS), CPU, GPU of the whole process tree into `docs/engine/runs//samples.csv`; `webkit_shell.py` is the WebKitGTK 6.0 shell (needs `webkitgtk-6.0`); report `docs/engine/engine-comparison.md`. Never run two at once or alongside cargo | now | | `python3 tests/smoke/net/server.py &` + `tools/smoke.sh tests/smoke/site-data.txt`; `tools/smoke.sh tests/smoke/media-audio.txt` | site info cookie/data count, Clear data time range (stored data kept, cookies always whole); WebKit `is-playing-audio` → tab audible, tab mute via `set_is_muted` (`pages/sound.html`, `?element` plays `tone.ogg` with Media Session metadata; WebKit's MPRIS player shows on the run's bus: `busctl --address=unix:path=$(cat /session/runtime)/bus list`). Offline, hidden | now (S051) | -| `tools/smoke.sh tests/smoke/pip.txt` (+ `tools/hidden.sh tests/smoke/pip.txt -- tests/smoke/pip-driver.sh`: `/windows.json` PiP floating), `bindings.txt` (side buttons, middle click; hidden only), `ctxmenu.txt` (site menu vs Nacre's; hidden only), `pip-return.txt` (page input after PiP and back; hidden only), selftest `pick x y` (GTK's pick at a page point + view state), `python3 tests/smoke/net/server.py &` + `SMOKE_SIZE=1280x900 tools/smoke.sh tests/smoke/auth.txt`, `tests/smoke/visible-ui.txt` (by hand, header) | PiP moves the live view and back (offline); HTTP sign-in cancel + saved login (offline); visible: portal file chooser, notification, page full screen, Web Inspector (`dialogs.txt` now also checks dialog answers, context menu, leave page, permission bars, notifications count) | now (S048, S056) | +| `tools/smoke.sh tests/smoke/pip.txt` (+ `tools/hidden.sh tests/smoke/pip.txt -- tests/smoke/pip-driver.sh`: `/windows.json` PiP floating), `bindings.txt` (side buttons, middle click; hidden only), `ctxmenu.txt` (site menu vs Nacre's; hidden only), `pip-return.txt` (page input after PiP and back; hidden only), `pip-loop.txt` (+ `-- tests/smoke/pip-loop-driver.sh`: PiP three rounds, ended by command, Escape, window close; `windows-.json`; hidden only), selftest `pick x y` (GTK's pick at a page point + view state), `python3 tests/smoke/net/server.py &` + `SMOKE_SIZE=1280x900 tools/smoke.sh tests/smoke/auth.txt`, `tests/smoke/visible-ui.txt` (by hand, header) | PiP moves the live view and back (offline); HTTP sign-in cancel + saved login (offline); visible: portal file chooser, notification, page full screen, Web Inspector (`dialogs.txt` now also checks dialog answers, context menu, leave page, permission bars, notifications count) | now (S048, S056) | | `tools/hidden.sh