S045 (WIP): hidden harness, repaint/zoom/placement fixes; box 10 YouTube click open

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-13 03:42:37 -06:00
commit 959a950ae4

View file

@ -356,6 +356,15 @@ Later: S010 list: user checks the Discord icon with their own client (the Discor
- Verified: release build green, `cargo test` 74 green (was 70), smokes launch, basics, input, net-adblock, net-privacy exit 0 (hidden, Servo).
- Not done here: boxes 3–5 (ViewId, neutral payload types, selftest) moved to S045 (D-041).
## S045 — GTK 4 host, WebKitGTK views, Servo out (2026-11-13, WIP: box 10 open)
- Done: `src/engine/` (ViewId, neutral Event payloads, NetworkSession/WebContext/Settings per profile, one WebView per tab, signals → Event), `src/egui_area.rs` (spike + clipboard, cursor, HiDPI, focus), GTK `App` (Rc<RefCell>, idle pump, 100 ms tick), GTK capture-phase shortcuts, stop/reload/zoom/back-forward, real load progress; Servo, winit, gilrs, gst rpath out (`cargo tree -i servo` fails).
- Verified: release build + `cargo test` 73 green; hidden runs (`tools/hidden.sh`, new): `tests/hidden/basic.txt` (new tab, chrome dark/light, tabs open/switch/close, offline) and `web.txt` (Wikipedia renders under the chrome, YouTube renders) — shots read.
- Shots vs Servo `target/smoke/chrome5`: chrome identical (tabs, toolbar, bookmarks bar, card corners, fonts); differences: the address field keeps focus (ring) after opening a tab; page text 1 px higher; no media button (old run's state); output 1280x800 vs 820.
- Fixed on the way: repaints asked for during an egui render were lost (UI froze); a `Gtk.Fixed` size request grew the window; views after the first got a NaN zoom without a desktop font DPI (blank pages); shots need a persistent WidgetPaintable.
- Not done (box 10): YouTube does not start after a real wl-input click on the player: the click reaches the page at the right point (402,354) but its target is `<html>` (hit test finds no element) — next step: elementFromPoint there, compare with the Servo-free spike (which played).
- Stubbed for S047/S048: picture in picture (toast), page `rclick`/`pagescroll`/`pagetype` in selftest go through page JS, request policy `net::policy::decide` and ad-block request blocking not wired (cosmetic/page scripts only), cookie persistence (S051), `Shortcut` per-app window class, console messages from pages.
- Later: system dark detection may be polluted by Nacre's own prefer-dark setting; Wikipedia stays light with Nacre dark (check prefers-color-scheme).
## Later
- Turnstile widget paints as a black half-disc (Servo painting of its iframe/shadow DOM, S006 site doctor).
- Google sign-in past the email step: press Next with a real account, by the user (S006).