From 4eeb72a25ab7eb4c16637ee1b0aab1054a5c3ea9 Mon Sep 17 00:00:00 2001 From: astar76 Date: Fri, 13 Nov 2026 04:18:41 -0600 Subject: [PATCH] S045: YouTube plays after a real click in the hidden run; address field lets go when a page takes focus The hidden click landed on because YouTube keeps its main thread busy ~7 s after load and swaps its skeleton for the player meanwhile; web.txt now clicks once the point hits #movie_player. focus_page drops egui's text focus and attaches the view first; new foreground web tabs, tab switches and new views use it. Selftest status gets ui_typing and page_focused. Co-Authored-By: Claude Opus 5.5 --- Plans/08 WebKit engine/S045-gtk-host.md | 17 ++++++++--------- Plans/INDEX.md | 2 +- docs/PROGRESS.md | 16 ++++++++-------- src/actions.rs | 10 +++++++++- src/app.rs | 2 +- src/selftest.rs | 2 ++ src/window.rs | 9 +++++++++ tests/hidden/basic.txt | 2 ++ tests/hidden/web.txt | 3 +++ 9 files changed, 43 insertions(+), 20 deletions(-) diff --git a/Plans/08 WebKit engine/S045-gtk-host.md b/Plans/08 WebKit engine/S045-gtk-host.md index c5f1f28..7e39c87 100644 --- a/Plans/08 WebKit engine/S045-gtk-host.md +++ b/Plans/08 WebKit engine/S045-gtk-host.md @@ -23,8 +23,8 @@ egui's page rect }, EguiArea }`, today's egui Material You chrome drawn unchange - [x] Keys: GTK key events → `keys.rs` (rename `to_servo` → `to_page`/drop), capture-phase shortcuts so Ctrl+L/T/W/Tab work while the page has focus; page keys go to WebKit natively. - [x] Page actions: load, back/forward, reload/hard reload, **stop** (new), zoom, show/hide on tab switch; `ui/chrome.rs load_estimate` uses real progress. - [x] `nice cargo build --release -j 2` green (fix compile errors in place); `nice cargo test --release -j 2` green. -- [ ] Hidden check with the spike harness (`spikes/webkit-egui/run/nested.sh`, adapt `spike.sh` to run `target/release/nacre` with a throwaway home): new tab page, https://en.wikipedia.org/wiki/Web_browser, YouTube watch plays after a click; `grim` shots of chrome dark/light next to a pre-switch shot of the same page (`target/smoke` from an older launch run, or check out the last Servo commit's shots in PROGRESS) — Read them, list differences. -- [ ] PROGRESS entry (what is stubbed for S047/S048: dialogs, pop-ups, menus, permissions, scripts), INDEX line, tracker, commit `S045: …`, push. +- [x] Hidden check with the spike harness (`spikes/webkit-egui/run/nested.sh`, adapt `spike.sh` to run `target/release/nacre` with a throwaway home): new tab page, https://en.wikipedia.org/wiki/Web_browser, YouTube watch plays after a click; `grim` shots of chrome dark/light next to a pre-switch shot of the same page (`target/smoke` from an older launch run, or check out the last Servo commit's shots in PROGRESS) — Read them, list differences. +- [x] PROGRESS entry (what is stubbed for S047/S048: dialogs, pop-ups, menus, permissions, scripts), INDEX line, tracker, commit `S045: …`, push. ## End criteria - `cargo tree -i servo` fails (no Servo in the graph); release build and `cargo test` green. @@ -39,10 +39,9 @@ egui's page rect }, EguiArea }`, today's egui Material You chrome drawn unchange ## Handoff (→ PROGRESS.md) Where each `Event` comes from; what is stubbed; how to run Nacre hidden until S046 lands. -## WIP state / resume at (2026-11-13) -Boxes 1–9 done (commit 6c748ba + fixes). Box 10: run `HIDDEN_TIMEOUT=400 tools/hidden.sh tests/hidden/web.txt "" -- tests/hidden/web-driver.sh` -(outdir default target/hidden/web-