S023: request headers (DNT, Sec-GPC, Save-Data) and third-party cookie blocking in the vendored servo-net
New vendor/servo-net/nacre.rs holds embedder-set state; http_loader and websocket_loader read it. Settings rows are working switches; privacy mode turns blocking on. Loopback smoke tests/smoke/privacy-net.txt, unit tests for site matching. Patch list in DESIGN.md, D-017. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
15fd1b21dc
commit
f5cb6f76f8
1 changed files with 357 additions and 34 deletions
|
|
@ -286,6 +286,15 @@ Done: Discord against a fake IPC server (`SMOKE_FAKE_DISCORD=1`, `tests/smoke/ne
|
|||
Not done: real Discord, real gamepad, spell dictionary download/add word/other languages, per-site Discord IDs, media flyout/visualizer/mute (S005 did PiP).
|
||||
Later: S010 list: user checks the Discord icon with their own client (the Discord client may refuse a `.ico` icon; then a PNG source is needed), plays a real gamepad, tries the dictionary download.
|
||||
|
||||
## S023 — Request headers and third-party cookies in servo-net (2026-11-12)
|
||||
- Done: `vendor/servo-net/nacre.rs` (Nacre patch, D-017): embedder-set extra headers, third-party cookie switch, top-level site per webview (from Document requests and `notify_url_changed`, forgotten on close). `http_loader.rs` adds the headers and skips sending/storing cookies for third-party requests; same for WebSocket handshakes. Nacre sets them in `refresh_hub_config` (`hub::privacy_headers`: DNT + Sec-GPC, Save-Data).
|
||||
- Settings: "Send Do Not Track and GPC", "Save data" and "Block third-party cookies" are plain working switches; blocking is also on in privacy mode (`App::privacy_mode_on`).
|
||||
- Tests: 2 new unit tests (headers; site matching incl. subdomains, eTLD+1, IPs), 64 green. `tests/smoke/privacy-net.txt` (loopback; server routes /setcookie, /cookies, /tp, /pixel, /reset, `reqs` log) green twice: cross-site frame and picture get and store no cookies when on, do when off, blocked again in privacy mode; same-site subdomain keeps its cookie; headers present, gone with DNT off. net-privacy and launch still green.
|
||||
- Patch list for Servo upgrades: DESIGN.md "Vendored servo-net patches" (all patch sites).
|
||||
- Not done: `document.cookie` / Cookie Store API in cross-site frames (script sends no webview id; servo-script not vendored). No real-site login check with blocking on (Google/GitHub sign-in) — for the user.
|
||||
- Handoff to S024: privacy mode already turns third-party cookie blocking on; S024 only extends `App::privacy_mode_on` if it adds per-window/per-site modes.
|
||||
- Later: a test server left by an older session held ports 8766/8767 with stale code; stop old ones before net smokes.
|
||||
|
||||
## 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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue