Commit graph Nacre/Plans/08 WebKit engine
Author SHA1 Message Date
cc42e1bde6 orchestrator: S056 daily-use fixes from the user's first WebKit test (after S050)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 19:32:29 -06:00
f63ddf8da1 S050 (WIP): WebKit through the bridge over SOCKS5, navigation policy, certificate warning, downloads, cookie policy
- Bridge speaks SOCKS5 on its port; WebKit uses it (plain http through the HTTP proxy lost the login and looped);
  loopback skips the proxy.
- decide-policy: HTTPS-only upgrade with redirect guard, tracking strip, Content-Disposition downloads; Images
  permission as a WebKit content filter (net::policy::images_filter).
- load-failed-with-tls-errors -> Nacre's certificate page (assets/pages/badcert.html), "Open anyway" via
  nacre://allowcert for that tab only.
- download-started: web links to Nacre's downloader, blob:/data: saved by WebKit and tracked in the downloads list.
- Third-party cookies: NoThirdParty + ITP; privacy mode Accept-Language through the extension.
- selftest js/assert/save wait for the page's answer (unanswered asserts used to pass).
- Smokes: net-privacy (+localhost, TLS, images), net-downloads (+<a download>, blob:), privacy-net on https.
Open: main-frame detection for navigations, Google UA quirk, privacy-mode/cache smokes (see plan "Resume").

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 15:27:36 -06:00
8df37bafa1 S049: ad blocker on WebKit content filters, web process extension, RAM check
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 14:34:02 -06:00
bb1c1a5ed7 S049 (WIP): ad blocker in WebKit content filters, web process extension for headers, stand-ins and blocked counts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 14:33:18 -06:00
72709e07b9 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
ffc22e911f 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
b7d1dbcc2f 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
4eeb72a25a 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
bff018bcfc 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
6c748ba7b0 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
02929e2f8d 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
043987a634 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
63b39d7b7e 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