S050 (WIP): Google UA quirk past WebKit's site quirks, navigation policy only for the tab's own loads, DocumentBrowser cache model (D-040), privacy-mode on WebKit
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
070227847a
commit
e12d9ee9af
1 changed files with 84 additions and 19 deletions
|
|
@ -43,7 +43,7 @@
|
|||
- D-037 — 2026-11-13 — Cookies at rest on WebKit (keeps D-019's rule "never plain on disk"): WebKit's SQLite cookie store lives in the per-run `$XDG_RUNTIME_DIR` (tmpfs, 0700) via `CookieManager::set_persistent_storage`; Nacre fills it from the sealed `cookies.bin` at start and seals it back (D-019 key, XChaCha20-Poly1305) at quit and every 60 s after a cookie change. No keyring → cookies for the run only, as before. Servo-era `cookies.bin` is converted when it parses, else moved aside. — keeps encryption without patching WebKit; tmpfs never touches the disk — S051
|
||||
- D-038 — 2026-11-13 — Profile folder `nacre-servo` → `nacre-browser` (config, data, cache): on first start, if `nacre-browser` is missing and `nacre-servo` exists, it is renamed (one move, logged); Servo-only engine files inside are deleted after the move. `~/.config/nacre` belongs to the Python Nacre and is never touched (the importer reads it). — engine name out of the path; `nacre` is taken by the original — S051
|
||||
- D-039 — 2026-11-13 — Media on WebKit: Nacre's page-script media probe (`inject.rs` `media.*`, mediaSession hook) stays the one source for the new tab card, Discord and MPRIS; WebKit's `is-playing-audio` and `set_is_muted` replace the mute script. If WebKitGTK publishes its own MPRIS player it is not left as a second player (turned off or Nacre's skipped, whichever the plan finds possible; one player only). — one engine-neutral source already feeds three features — S051, S013
|
||||
- D-040 — 2026-11-13 — WebKit tuning defaults (D-032 data, `docs/engine/tune/`): page cache off, memory pressure limit 500 MB per web process, cache model `DocumentViewer`, hardware acceleration policy default (on demand; `never` broke JS checks), related views only for pop-ups. Env overrides for tests (`NACRE_WK_PAGE_CACHE`, `NACRE_WK_MEM_LIMIT`, `NACRE_WK_CACHE_MODEL`, `NACRE_WK_HW`). — lowest PSS/VRAM in the tune runs without failed sites — S052
|
||||
- D-040 — 2026-11-13 — WebKit tuning defaults (D-032 data, `docs/engine/tune/`): page cache off, memory pressure limit 500 MB per web process, cache model `DocumentBrowser` (amended in S050: `DocumentViewer` has no HTTP disk cache; hidden 4-tab check, nacre tree PSS median: viewer 1147 MB, browser 1128 MB; env `viewer` for the old one), hardware acceleration policy default (on demand; `never` broke JS checks), related views only for pop-ups. Env overrides for tests (`NACRE_WK_PAGE_CACHE`, `NACRE_WK_MEM_LIMIT`, `NACRE_WK_CACHE_MODEL`, `NACRE_WK_HW`). — lowest PSS/VRAM in the tune runs without failed sites — S052
|
||||
- D-041 — 2026-11-13 — S044 boxes 3–5 (Nacre `ViewId`, engine-neutral `Event` payload types, selftest on them) move to S045 and are defined directly on WebKit; S044 closes with the privacy/policy move. — converting 56 Servo payload uses and 14 `WebViewId` sites now would only add Servo adapters that S045/S048 delete — orchestrator, 2026-11-13 — S044, S045
|
||||
- D-042 — 2026-11-13 — S045 GTK host: the WebKit build ports page controls instead of stubbing them (script dialogs, `<select>`, colour, file, HTTP auth, permissions, context menu from WebKit's hit test, notifications); Bluetooth chooser and protocol-handler prompts are removed (WebKit has neither); picture in picture shows "isn't available yet" until S047; one `UserContentManager` per view so page messages carry their `ViewId` (bridge posts to `window.webkit.messageHandlers.nacre`); cookies stay in WebKit's memory until S051 (`Keeping::RunOnly`); downloads come from the response policy (non-displayable main-frame MIME) plus `looks_like_download`, the Servo download probe is gone; WebKit data/cache under `<profile data>/webkit` and `<cache>/webkit`; views sit in a `Gtk.Overlay` placed by margins (a `Gtk.Fixed` size request grew the window); prefers-color-scheme follows GTK's dark preference set by Nacre (its own changes ignored by the system-scheme watcher); with no desktop font DPI (`gtk-xft-dpi` -1) Nacre sets 96 dpi, else WebKit gives every view after the first a NaN zoom (blank page).
|
||||
- D-043 — 2026-11-13 — Local media and WebKit's sandbox: the web process sandbox (bwrap) has no /home, so GStreamer can't read file:// media. Nacre adds the XDG user folders that exist (Downloads, Videos, Music, Pictures, Desktop, Documents; never the home folder itself) read-only with `WebContext::add_path_to_sandbox` before the first web process, plus `tests/smoke/pages` read-only only when `NACRE_SCRIPT` is set (`engine::host::media_dirs`). file:// media elsewhere doesn't play. — Chromium plays local files; all of $HOME would let a web process read ~/.ssh — orchestrator (option A), 2026-11-13 — S050/S051 media and downloads, any sandbox change
|
||||
|
|
|
|||
Loading…
Reference in a new issue