Commit graph Nacre/Plans/08 WebKit engine
Author SHA1 Message Date
f2f096cc39 S048: WebKit UI callbacks: pop-ups, dialogs, context menu, permissions, full screen, Web Inspector, PiP
- Pop-ups as related-view tabs; a blocked one's URL opens on "Allow"
- Closing a tab runs beforeunload (try_close, 3 s fallback); HTTP sign-in checked
- egui takes the pointer over the page while a dialog or menu is open; colour picker closes on Escape/outside
- Permission reasons recomputed for WebKit; media stream/WebRTC on; saved notification answers given to WebKit
- Notifications no longer dropped after a non-remembered allow
- F12 opens Web Inspector; nacre://devtools lists tabs and remote inspection (D-046); console/network page removed
- PiP moves the tab's own view into the PiP window and back (no reload)
- Smokes: dialogs, basics extended; pip.txt, auth.txt (server /auth), visible-ui.txt

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 08:03:51 -06:00
0c59cfcee2 S047: page scripts, user style sheets, find and JS on WebKit
User styles become WebKit user style sheets (script fallback for patterns
WebKit can't express), the nacre message handler is registered before the
view exists, find runs on FindController, and the Servo-only shims are gone
from inject.rs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 07:20:17 -06:00
ebbd445127 S046: smoke harness in a hidden nested niri, real selftest input, local media in the sandbox
- tools/nested-session.sh (Xvfb -> nested niri, own display/runtime dir, xresize for SMOKE_SIZE); smoke.sh and
  hidden.sh run in it; wl-input moved to tools/wl-input (own crate)
- selftest: click/rclick/pagescroll via wl-input, pagetype via wtype, resize via the nested niri
- WebKit sandbox: XDG user dirs (+ test pages in scripted runs) read-only so file:// media plays (D-043)
- SMOKE_VISIBLE needs the user's niri window rule, never moves focus (D-044)
- launch, basics, input, keys, chrome green hidden

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 06:14:17 -06:00
0656eeb438 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 <html> 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 <[email protected]>
2026-11-13 04:18:41 -06:00
959a950ae4 S045 (WIP): hidden harness, repaint/zoom/placement fixes; box 10 YouTube click open
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 03:42:37 -06:00
b1205373a5 S045: GTK4 host with WebKitGTK views, egui overlay, engine module; Servo and winit removed
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 02:39:02 -06:00
70ec8ed3cb S044: engine seam closed; ViewId and neutral payload types moved to S045 (D-041)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 02:09:56 -06:00
5c88d172fe S044 (WIP): privacy rules and request policy out of hub.rs
net::privacy (headers, tracking strip, language list) and net::policy
(HubConfig, pure decide() -> Outcome) with tests; Hub::decide is a thin Servo
adapter. Build, 74 tests, smokes launch/basics/input/net-adblock/net-privacy
green. Boxes 3-4 (ViewId, neutral payload types) not done: see the plan's WIP note.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 02:09:07 -06:00
f91ba83682 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]>
2026-11-13 02:01:11 -06:00