S044: engine seam closed; ViewId and neutral payload types moved to S045 (D-041)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-13 02:09:56 -06:00
commit 70ec8ed3cb

View file

@ -350,6 +350,12 @@ Later: S010 list: user checks the Discord icon with their own client (the Discor
- 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.
## S044 — Engine seam: privacy rules and request policy out of hub.rs (2026-11-13)
- Done: `src/net/privacy.rs` (privacy headers, tracking strip, Firefox-style language list + tests), `src/net/policy.rs` (`HubConfig`, `Request`, `Outcome`, pure `decide()` + 4 tests); `Hub::decide` is a thin Servo adapter (`Outcome`, since `Decision` is taken by `store::permissions`).
- Kept in `hub.rs`: the third-party/site test and header-append test (they test vendored servo-net; WebKit's cookie policy replaces them).
- Verified: release build green, `cargo test` 74 green (was 70), smokes launch, basics, input, net-adblock, net-privacy exit 0 (hidden, Servo).
- Not done here: boxes 3–5 (ViewId, neutral payload types, selftest) moved to S045 (D-041).
## 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).