plans: 07 Polish pass (S031–S042) from phase5.md; D-020–D-023
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
8e54a49fec
commit
a8dfccc6f0
1 changed files with 483 additions and 2 deletions
|
|
@ -22,3 +22,7 @@
|
|||
- D-017 — 2026-11-12 — Request headers and third-party cookie blocking are Nacre patches in the vendored servo-net (S023): new module `nacre.rs` holds embedder-set state (extra headers, block switch, top-level site per webview); `http_loader.rs` and `websocket_loader.rs` read it. A request is third-party when its host's registrable domain differs from its webview's top-level site; blocking is on when the setting or privacy mode is on (`App::refresh_hub_config`). — Servo 0.7 has neither; the user wants engine fixes. `document.cookie` in cross-site frames stays uncovered (script isn't vendored). — S024 (privacy mode only needs `privacy_mode_on`), any Servo upgrade (re-apply from DESIGN.md "Vendored servo-net patches", re-run `privacy-net.txt`)
|
||||
- D-017 — 2026-11-12 — MSE DOM design (S027). (1) `dom_media_source_enabled` is not a servo-config pref: adding a field to `Preferences` means vendoring servo-config, which rebuilds nearly every Servo crate. Instead the three interfaces carry `[Func="MediaSource::enabled"]`, which reads `NACRE_DOM_MEDIA_SOURCE_ENABLED` once (`0`/`false` = off, default on; `servo_media_player::mse::enabled`). A settings switch, if wanted, sets that variable before Servo starts. (2) The DOM owns the spec state (readyState, updating, both lists, events, always queued as media element tasks); gst_mse owns parsing, buffering and removal. Only `sourceopen` after attaching, update-end/error, duration and active-list changes come from the backend. (3) The backend's event sink names its MediaSource by id through a thread-local map of weak references (no `Trusted`, so a dropped MediaSource is collected). (4) MediaSource object URLs live in a per-global map (`GlobalScope::media_source_urls`), revoked one task later (pages revoke right after setting `src`), cleared on unload. (5) gst_mse defects found here are fixed in vendor/gst-mse like D-016 (patches 5–9 in docs/engine/gst-mse-patches.md). — Keeps rebuilds to servo-script and the media crates; matches Servo's own direction (#22416). — S028 (player integration, merge), S029, any Servo upgrade
|
||||
- D-018 — 2026-11-12 — Privacy mode looks like desktop Firefox (S024): values that can't be hidden are made consistent with the Firefox user agent (platform, oscpu, appVersion, WebGL "Mozilla", no touch points, Firefox's language list in both `navigator.languages` and Accept-Language); canvas/WebGL/audio/fonts get noise seeded per run and top-level site; time zone and locale stay real; the TouchEvent globals stay (removing them broke Wikipedia). Engine gaps that stop fingerprint or site scripts get a small always-on JS layer (`FONTS_CHECK_JS`, `COMPRESSOR_JS`). — Inconsistent spoofing is itself a fingerprint; Firefox is the UA Nacre sends. — S025 and later privacy or UA work: keep the navigator values in step with any user agent change (`inject::firefox_navigator`).
|
||||
- D-020 — 2026-11-12 — Phase 5 polish pass = `Plans/07 Polish pass` S031–S042, ordered crash (S031) → performance (S032, after S031: same ad-block path) → SVG/masks → small fixes → flyouts + context menu → custom DLM → DevTools (2 plans) → motion (after flyouts) → little-things sweep → site passes (after S028 MSE merge) → user review. R4-04/R4-06/R4-08 and the PROGRESS "Later" items Turnstile, Bookmark flyout, mask-image squares, YouTube result list folded in. — phase5.md order (crash first); flyouts and motion share menus.rs so motion goes after. — S031–S042
|
||||
- D-021 — 2026-11-12 — DevTools is a separate egui window (dock/undock) fed by Servo's own devtools server (Firefox Remote Debugging Protocol) on loopback with a per-open token; Nacre has its own RDP client. Data Servo's actors lack is added by patching the vendored devtools crate, not by injecting page JS. — The user wants engine fixes over workarounds; RDP already has DOM walker, styles, console, network actors. — S037, S038
|
||||
- D-022 — 2026-11-12 — Custom download manager contract: user-set endpoint URL, loopback only (`127.0.0.1`, `localhost`, `[::1]`). Hand-over = `POST <url>` with `Content-Type: application/json` body `{"url","filename","referrer","cookies" (Cookie header string for that URL),"user_agent","headers" (object),"size" (bytes or null),"mime" (or null)}` and, when a token is set, header `Authorization: Bearer <token>`; any 2xx = taken, else Nacre downloads itself and says why. Status ping = `GET <url>` (same token header), any 2xx = reachable. — Same shape as the other managers in `dlm.rs`; loopback-only keeps cookies on the machine. — S036
|
||||
- D-023 — 2026-11-12 — Motion rules for the egui UI (translated from the web "animate" skill, full text in S039 and then DESIGN.md "UI system"): gate by frequency (no motion on keyboard/100+-a-day actions), one named purpose, only `theme::spring`, opacity + paint offset/scale (never scale from 0, flyouts from their anchor), critically damped for UI with settle 150–300 ms, bounce only for drag release, interruptible + exit mirrors entry, Motion Off = nothing moves or fades. — The user asked for more motion done well; reduced-motion in the skill maps to the existing Motion setting. — S039, S040 and every later UI plan
|
||||
|
|
|
|||
Loading…
Reference in a new issue