webkit-spike: hidden run result, D-035..D-040, plans 08 WebKit engine S044-S055

GTK 4 host + transparent egui GLArea over WebKitGTK proven hidden (Xvfb + nested
niri): pick fall-through, real input and IME, egui menus over video, pacing equal
with and without the overlay. Spike fixes: IM client widget, wl-input Y flip,
SPIKE_EGUI=0 layout, URL trim.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-13 02:01:11 -06:00
commit 63b39d7b7e

View file

@ -342,6 +342,14 @@ Later: S010 list: user checks the Discord icon with their own client (the Discor
- Removed: `tools/wpt-mse.sh`, `tests/wpt-mse/` (Servo MSE conformance, nothing else used them) and their CLAUDE.md/DESIGN.md mentions.
- Not done (on purpose): src/, Cargo.toml, vendor/, build.rs, gst-mse tools and MSE/painter smoke scripts stay until the WebKit glue builds. No cargo run.
## webkit-spike — GTK 4 host + egui overlay over WebKitGTK, result (D-033/D-035, 2026-11-13)
- Done: spike run hidden (Xvfb + nested niri, software GL; kwin_wayland not installed) on YouTube watch, Wikipedia, DuckDuckGo: egui flyout over a playing video, GTK pick routes egui vs page right, real click/wheel/right click/typing/IME reach the page natively; egui context menu from WebKit's hit test opens links in tabs; window.open → tab. Details and numbers: `docs/engine/webkit-spike.md`.
- Pacing identical with/without the overlay (29.6 vs 29.4 fps, llvmpipe cap; 628 video frames, 0 dropped); egui 65 renders/15 s, 0.46 ms p50; overlay +~20 MB PSS (1310 vs 1287 MB, one YouTube tab).
- Spike fixes: egui IME needs `IMMulticontext::set_client_widget`; `wl-input` `WL_INPUT_FLIP_Y=1` (nested niri mirrors Y); `SPIKE_EGUI=0` layout; URL trim. Harness: `spikes/webkit-egui/run/`.
- Decisions D-035 (result + hidden harness), D-036 ad block, D-037 cookies, D-038 profile `nacre-browser`, D-039 media, D-040 tuning.
- Plans `08 WebKit engine` S044–S055 written, in INDEX before the other open plans, tracker seeded.
- Not proven: GPU/dmabuf path and 60 fps under the overlay (needs a visible run), Web Inspector, full screen, file chooser, HiDPI.
## 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).