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
b8d1bef494
commit
e7bade29b5
15 changed files with 483 additions and 2 deletions
3
PLAN.md
3
PLAN.md
|
|
@ -11,7 +11,8 @@ About 19k lines written across storage, networking, ad blocker, media, importer,
|
|||
2. **Verify** — run the unit tests, smoke test offscreen (page renders, tabs, settings), check the shared-GL painter question; fix what breaks.
|
||||
3. **Gaps** — work through `docs/REVIEW.md`, fix the user's review items, add MPRIS media keys (other candidates deferred, D-002).
|
||||
4. **UI redesign** — Material You (tonal-spot schemes, spring motion, expressive shapes) and the animated new tab page per `docs/UI-BRIEF.md`, using the `app-taste` skill. Starts only after the framework works.
|
||||
5. Packaging and release (Linux AppImage/tar.gz, Windows installer and zip) when the user asks.
|
||||
5. **Polish pass** (`Plans/07 Polish pass`, input `docs/review/phase5.md`) — the crash, load speed, SVG/masks, small fixes, flyouts and context menu, custom download manager, a DevTools window, motion rules, a little-things sweep and site passes; ends with the phase 5 review (S042).
|
||||
6. Packaging and release (Linux AppImage/tar.gz, Windows installer and zip) when the user asks.
|
||||
|
||||
Each of phases 1–4 ends with a user review plan (D-003).
|
||||
|
||||
|
|
|
|||
39
Plans/07 Polish pass/S031-adblock-crash.md
Normal file
39
Plans/07 Polish pass/S031-adblock-crash.md
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# S031 — Fix the SIGSEGV after an ad-blocked script load
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: high · Depends on: — · Size: M · Human: no
|
||||
> Files touched: src/adblock.rs, src/hub.rs, vendor/* (only if the fault is in Servo), tests/smoke/crash-adblock.txt, tests/smoke/pages/*
|
||||
|
||||
## Goal
|
||||
R5-01 (critical, `docs/review/phase5.md`): Nacre crashed with SIGSEGV while searching (YouTube / Google search page,
|
||||
throwaway profile). Last log line: `htmlscriptelement] Fetching classic script failed Load cancelled (… static.doubleclick.net/instream/ad_status.js …)`,
|
||||
so the ad blocker had just cancelled a script load. PROGRESS (S024) also saw heavy-web's YouTube step crash once.
|
||||
Reproduce, find the faulting frame, fix the cause (in Nacre or in vendored Servo, D-017 style — no workaround such as
|
||||
"don't cancel scripts"), and add a regression smoke.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-01 · `src/adblock.rs` · in `src/hub.rs` the `load_web_resource` / intercept path (grep `intercept`, `cancel`)
|
||||
- `docs/DESIGN.md` "Servo 0.7 embedding cheat sheet" and "Vendored servo-net patches"
|
||||
- `tools/smoke.sh` header, `tests/smoke/heavy-web.txt`, `tests/smoke/net-adblock.txt`
|
||||
|
||||
## Steps
|
||||
- [ ] Reproduce: offline first (a local page whose `<script src>` / module script / `ad_status.js`-style URL is on a local block list, loaded many times, with `tests/smoke/net/server.py`); if that does not crash, `heavy-web.txt` YouTube search step with `RUST_BACKTRACE=full`. Record the crash rate.
|
||||
- [ ] Get the faulting backtrace: `coredumpctl gdb` / run under `gdb -batch -ex run -ex bt` (debug symbols: `CARGO_PROFILE_RELEASE_DEBUG=line-tables-only` only if needed, same target/); note thread and frame in PROGRESS.
|
||||
- [ ] Find the cause (cancelled response answered twice or after drop, a dropped `WebResourceLoad`, a script-thread race, SpiderMonkey GC on a cancelled fetch, …) and write it down in two lines before changing code.
|
||||
- [ ] Fix at the cause. If it is in Servo, vendor the minimal crate like servo-net (D-017) and add the patch site to DESIGN.md "Vendored servo-net patches" (or a new "Vendored patches" list).
|
||||
- [ ] Unit test for the Nacre side when feasible (e.g. intercept answers exactly once per request).
|
||||
- [ ] Regression smoke `tests/smoke/crash-adblock.txt` (offline, local server, ≥ 200 blocked script loads incl. page reloads/navigations mid-load); add its row to CLAUDE.md §5.
|
||||
- [ ] Rerun: crash-adblock ×3, net-adblock, launch, heavy-web (internet, `SMOKE_TIMEOUT=900`) ×2 — no crash.
|
||||
- [ ] PROGRESS entry, phase5.md R5-01 → `[fixed <commit>]`, INDEX line, commit `S031: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `tools/smoke.sh tests/smoke/crash-adblock.txt` exits 0 three runs in a row; before the fix it crashed (or the cause is proven by the backtrace + test).
|
||||
- `tools/smoke.sh tests/smoke/heavy-web.txt` (SMOKE_TIMEOUT=900) shows no SIGSEGV in two runs (site failures unrelated to the crash may remain; list them).
|
||||
- `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- One cargo command at a time on `target/`; release builds take long after vendoring a crate.
|
||||
- A crash that needs internet may be timing-dependent: stress the offline repro (many tabs, fast reloads) before going online.
|
||||
- Never connect to Tor/proxies; use throwaway homes (smoke.sh does).
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Cause, fix location, crash rate before/after, any new vendored crate (S032 measures ad-block cost on the same path).
|
||||
35
Plans/07 Polish pass/S032-load-performance.md
Normal file
35
Plans/07 Polish pass/S032-load-performance.md
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# S032 — Page load performance pass
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: high · Depends on: S031 · Size: L · Human: no
|
||||
> Files touched: src/net/{bridge,dns,fetch}.rs, src/adblock.rs, src/hub.rs, src/app.rs (frame pacing), src/perf.rs, vendor/servo-net/*, tools/loadtime.sh (new), tests/smoke/loadtime*.txt, docs/engine/load-performance.md (new)
|
||||
|
||||
## Goal
|
||||
R5-02 (high): pages load slowly, especially the first load of a site. Measure where the time goes, cold vs warm, and
|
||||
remove the biggest costs. Fix inside the engine where the cost is there (vendored servo-net), no workarounds.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-02 · `src/net/bridge.rs`, `src/net/dns.rs` (top + resolve path), `src/adblock.rs` (matching)
|
||||
- `docs/DESIGN.md` "How the pieces fit", "Vendored servo-net patches" · `tests/smoke/heavy-web.txt`, `tests/smoke/cache.txt` headers
|
||||
- The S031 PROGRESS entry
|
||||
|
||||
## Steps
|
||||
- [ ] Timing harness: selftest/script command or `tools/loadtime.sh` recording per load: DNS, connect/TLS, first byte, DOMContentLoaded, load, first paint (Navigation Timing via `save`, plus Nacre-side timestamps in `nacre.log` behind `NACRE_TIMING=1`). Add the row to CLAUDE.md §5.
|
||||
- [ ] Baseline, offline (local server with a heavy page: many scripts/images/CSS, `*.nacre.test` via the DoH stub) and online (Wikipedia, DuckDuckGo, YouTube, Reddit, GitHub): cold (fresh home) and warm, 3 runs each; table in `docs/engine/load-performance.md`. Compare `NACRE_NO_BRIDGE=1` and ad block off to isolate each layer.
|
||||
- [ ] Bridge (local CONNECT proxy): per-connection overhead, connection reuse, buffering/copy sizes, thread model; fix the worst.
|
||||
- [ ] DNS: secure-DNS latency, caching, parallel A/AAAA, prefetch of the typed host; fix.
|
||||
- [ ] Ad block: matching cost per request (time 10k requests in a unit benchmark test), list loading at startup; fix.
|
||||
- [ ] servo-net: HTTP connection pool limits, HTTP/2 use, cache hits on warm loads (`cache.txt`), anything serialising requests; patch in the vendored crate with DESIGN.md patch notes.
|
||||
- [ ] Frame pacing: egui/painter redraw while a page loads (no busy loop, no blocked main thread in `load_web_resource`); check `perf.rs` numbers.
|
||||
- [ ] Re-measure, same table "after"; regression-check net-privacy, net-adblock, cache, https, launch smokes.
|
||||
- [ ] PROGRESS entry, R5-02 tag, DECISIONS if a binding choice was made, INDEX line, commit `S032: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `docs/engine/load-performance.md` has before/after tables from the harness (commands listed there); cold first-load time on the offline heavy page and on ≥ 3 real sites is measurably lower (state by how much; if a layer can't be improved, say why).
|
||||
- net-privacy, net-adblock, cache, https, launch smokes green; `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Never run two cargo commands on one `target/`. Internet timings are noisy: use medians of 3+, and the offline page for decisions.
|
||||
- Don't trade privacy for speed (DoH, ad block, HTTPS-only stay on); no proxies/Tor.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Harness command, the biggest costs found, what was left and why.
|
||||
36
Plans/07 Polish pass/S033-svg-masks.md
Normal file
36
Plans/07 Polish pass/S033-svg-masks.md
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# S033 — SVG and CSS masks render right
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: high · Depends on: — · Size: L · Human: no
|
||||
> Files touched: vendor/<servo crates for SVG images / masks> (new vendoring as needed), Cargo.toml [patch], src/hub.rs (favicons), src/ui/* favicon decode, tests/smoke/svg.txt, tests/smoke/pages/svg/*, docs/DESIGN.md
|
||||
|
||||
## Goal
|
||||
R5-03 (high): site logos render wrong — Wikipedia's globe logo is a black square. PROGRESS "Later": CSS `mask-image`
|
||||
icons paint as squares (YouTube). Find out how Servo 0.7 renders SVG (`<img src=*.svg>`, CSS backgrounds, inline
|
||||
`<svg>`, `currentColor`, filters, masks, `mask-image`) and fix the gaps in the engine. SVG favicons must show in tabs.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-03 · `docs/DESIGN.md` "Engine limits", "Vendored servo-net patches" (how a crate is vendored)
|
||||
- Servo 0.7 crate source in `~/.cargo/registry/src/*/` for the SVG path (grep `resvg`, `usvg`, `svg` in servo's net/image cache, layout, webrender glue)
|
||||
- `tools/smoke.sh` header
|
||||
|
||||
## Steps
|
||||
- [ ] Test pages `tests/smoke/pages/svg/`: Wikipedia's logo SVG (saved copy), `<img>` SVG with/without width/height/viewBox, CSS background SVG, inline SVG with `currentColor`, gradients, `<use>`, filters, masks, `mask-image: url(x.svg)` and `-webkit-mask-image`, SVG favicon; a reference PNG for each (render with `rsvg-convert`).
|
||||
- [ ] Smoke `tests/smoke/svg.txt` (offline, `python3 -m http.server` or the net server) shooting each case; add the CLAUDE.md §5 row. Record which cases fail and why (missing feature vs bug).
|
||||
- [ ] Root-cause the black square (e.g. resvg options/fonts, premultiplied alpha, missing viewBox sizing, unsupported element) and fix in the vendored crate.
|
||||
- [ ] `mask-image` / `-webkit-mask-image`: implement or fix in layout/WebRender display-list building (vendored), at least `url()` images and gradients with `mask-size/position/repeat`.
|
||||
- [ ] Inline SVG: fix what fails among the cases above that's within reach; list the rest in DESIGN.md "Engine limits".
|
||||
- [ ] SVG favicons: rasterise (resvg) for the tab strip, bookmarks, history.
|
||||
- [ ] Rerun svg.txt (all cases match their reference by eye in the shots), heavy-web Wikipedia step (logo shot), launch, chrome smokes.
|
||||
- [ ] PROGRESS entry, R5-03 tag, DESIGN.md patch list, INDEX line, commit `S033: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `tools/smoke.sh tests/smoke/svg.txt` green; its PNGs show the Wikipedia globe and the mask-image icons correctly (read them).
|
||||
- Wikipedia's real page shows its logo (heavy-web or a one-off `net-real`-style shot).
|
||||
- `nice cargo test --release -j 2` green; launch and chrome smokes green.
|
||||
|
||||
## Pitfalls
|
||||
- Vendoring layout/WebRender crates makes rebuilds long: vendor the smallest crate that holds the fix.
|
||||
- Keep each patch site listed for Servo upgrades.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Which SVG/mask features work now, which stay engine limits; vendored crates added.
|
||||
36
Plans/07 Polish pass/S034-small-fixes.md
Normal file
36
Plans/07 Polish pass/S034-small-fixes.md
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# S034 — Spelling underlines, inline autofill, "Settings updated" popup
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: medium · Depends on: — · Size: M · Human: no
|
||||
> Files touched: src/inject.rs (spell mirror JS), src/spell.rs, src/ui/chrome.rs (address bar), src/actions.rs, src/app.rs (notifications), tests/smoke/integ-spell.txt, tests/smoke/autofill.txt (new)
|
||||
|
||||
## Goal
|
||||
Three medium items: R5-04 spell-check underlines are mispositioned/mis-sized in text fields; R4-04 the address bar
|
||||
has no inline autofill (typing "wikipe" completes to "wikipedia.org" with the rest selected; Right or Enter accepts;
|
||||
with no completion Enter goes to what was typed); R4-08 a "Settings updated" popup appears when entering or
|
||||
switching tabs (source unknown — leads in `docs/review/phase4.md` R4-08).
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-04 · `docs/review/phase4.md` R4-04, R4-08 (both full text)
|
||||
- `src/inject.rs` spell module (grep `SPELL_JS`, `mirror`) · address-bar code in `src/ui/chrome.rs` (grep `suggest`, `omnibox`, `address`) · `App::on_notification` in `src/app.rs`
|
||||
- `tests/smoke/integ-spell.txt`, `tests/smoke/input.txt` headers
|
||||
|
||||
## Steps
|
||||
- [ ] R5-04: reproduce with integ-spell (shots at several font sizes, scrolled textarea, `<input>` with padding/border, zoom 150 %); fix the mirror's geometry (copy computed font, padding, border, line-height, letter-spacing, scroll offsets; follow resize/scroll) so underlines sit under the words.
|
||||
- [ ] R4-04: inline completion from history/bookmarks/top sites (host-first, prefix match, most visited), the rest selected; Right/End/Enter accept; Backspace/Delete removes the completion; typing over keeps going. Pure matching logic gets a unit test.
|
||||
- [ ] Smoke `tests/smoke/autofill.txt` (offline, seeded history) typing with selftest keys; CLAUDE.md §5 row.
|
||||
- [ ] R4-08: reproduce on a throwaway profile (switch tabs, open pages with notification permission, nacre:// pages; `dbus-monitor` for notifications); find the source and fix it so a popup only appears for a change the user made and says what changed. If it is not Nacre's, write down whose it is.
|
||||
- [ ] Rerun integ-spell, autofill, input, keys, launch smokes.
|
||||
- [ ] PROGRESS entry, R5-04/R4-04/R4-08 tags, INDEX line, commit `S034: …`, push.
|
||||
|
||||
## End criteria
|
||||
- integ-spell PNGs: underlines under the misspelled words in input, textarea, scrolled textarea, zoomed (read them).
|
||||
- `tools/smoke.sh tests/smoke/autofill.txt` green (asserts the field value and selection after typing and after Right/Enter).
|
||||
- R4-08 source named in PROGRESS with the fix (or proof it's outside Nacre).
|
||||
- `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Servo has no `caretRangeFromPoint` (S009 note); the mirror is also the right-click hit test: keep that working.
|
||||
- Inline autofill must not fire while composing IME text or when the user deleted the completion.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
What R4-08 was. Autofill ranking rule.
|
||||
38
Plans/07 Polish pass/S035-flyouts-context-menu.md
Normal file
38
Plans/07 Polish pass/S035-flyouts-context-menu.md
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# S035 — History/passwords/bookmarks flyouts and Nacre's own context menu
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: medium · Depends on: — (after S034: both touch chrome.rs) · Size: M · Human: no
|
||||
> Files touched: src/ui/menus.rs, src/ui/mod.rs (Flyout), src/ui/chrome.rs (toolbar buttons), src/ui/pages/{history,passwords,bookmarks}.rs (shared list widgets), src/hub.rs (context menu), tests/smoke/chrome.txt, tests/smoke/flyouts.txt (new), tests/smoke/context-menu.txt (new)
|
||||
|
||||
## Goal
|
||||
R5-05: toolbar History, Passwords (and other toolbar buttons that open a page today) open a flyout like Downloads,
|
||||
with "Open full page" in the flyout; reference `docs/ui-reference/old-flyout-{history,passwords,downloads}.png`.
|
||||
PROGRESS "Later": the Bookmark flyout stays open after switching tabs and shows the old page's bookmark — fix.
|
||||
R4-06: Nacre's own right-click menu on pages (links, images, text, fields, page): icons, rounded, Material You
|
||||
colours, same look as the flyouts.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-05 · `docs/review/phase4.md` R4-06 · the three `old-flyout-*.png`
|
||||
- `src/ui/menus.rs` (`flyouts`, `flyout_body`, `placement`, page context menu) · `src/ui/mod.rs` `Flyout` · `docs/DESIGN.md` "UI system (S015)"
|
||||
- Load the `app-taste` skill for the look.
|
||||
|
||||
## Steps
|
||||
- [ ] List every toolbar button and menu entry that opens a page/tab today; decide per button (flyout vs page) and note it in PROGRESS.
|
||||
- [ ] History flyout: search field, today/yesterday groups, favicon + title + time rows, click opens, middle-click new tab, "Open full page", empty state.
|
||||
- [ ] Passwords flyout: vault locked/unlocked states, site list with copy user/password, search, "Open full page" (respect the vault lock and never show passwords without unlock).
|
||||
- [ ] Any other button from the list (e.g. Bookmarks) → flyout reusing the same list rows (DRY with the full pages).
|
||||
- [ ] Bookmark flyout: closes on tab switch/navigation (and any other flyout tied to a page).
|
||||
- [ ] R4-06 context menu: Nacre-drawn menu for page/link/image/selection/editable (+ spelling entries) with icons, groups, keyboard navigation, Esc; all existing actions kept.
|
||||
- [ ] Smokes `flyouts.txt` and `context-menu.txt` (offline, dark and light shots of each); extend chrome.txt if it lists flyouts; CLAUDE.md §5 rows.
|
||||
- [ ] Rerun chrome, input, keys, launch, stores-lists smokes.
|
||||
- [ ] PROGRESS entry, R5-05/R4-06 tags, Later item removed, INDEX line, commit `S035: …`, push.
|
||||
|
||||
## End criteria
|
||||
- flyouts.txt and context-menu.txt green; PNGs show each flyout and menu in dark and light (read them).
|
||||
- chrome, input, keys, launch smokes green; `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Flyouts are egui Areas over the web view: clicks must not fall through to the page.
|
||||
- No motion work here beyond what flyouts already do: S039 adds animation (keep the open/close code in one place for it).
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Where the shared list rows live; per-button choices.
|
||||
32
Plans/07 Polish pass/S036-custom-download-manager.md
Normal file
32
Plans/07 Polish pass/S036-custom-download-manager.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# S036 — Custom download manager endpoint
|
||||
|
||||
> Category 07 Polish pass · Model: Sonnet · Effort: high · Depends on: — · Size: S · Human: no
|
||||
> Files touched: src/net/dlm.rs, src/store/settings.rs, src/ui/pages/settings.rs (Downloads section), docs/DESIGN.md, tests/smoke/net/server.py, tests/smoke/net-downloads.txt
|
||||
|
||||
## Goal
|
||||
R5-06: Settings → Downloads → managers gets a "Custom" entry so the user's own future download manager can
|
||||
receive links. Contract fixed in D-022 (`docs/DECISIONS.md`): implement it, document it in DESIGN.md
|
||||
("Custom download manager"), test it against the local stub.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-06 · D-022 in `docs/DECISIONS.md` · `src/net/dlm.rs` (whole, 200 lines)
|
||||
- Downloads section of `src/ui/pages/settings.rs` · `tests/smoke/net-downloads.txt` + the dlm stub routes in `tests/smoke/net/server.py`
|
||||
|
||||
## Steps
|
||||
- [ ] `Manager` "custom" with settings: endpoint URL (only `http://127.0.0.1`/`localhost`/`[::1]` accepted, validated), optional token; stored in settings with defaults.
|
||||
- [ ] Send: POST JSON per D-022 with the token header; 2xx = handed over, else fall back to Nacre's own downloader with a toast saying why.
|
||||
- [ ] Status ping per D-022 (Settings shows "Reachable / Not running", like the other managers).
|
||||
- [ ] Unit tests: payload building (cookies for the URL, headers), URL validation.
|
||||
- [ ] Stub route in `tests/smoke/net/server.py` logging the body; net-downloads.txt case for Custom (handed over, and fallback when the stub is down).
|
||||
- [ ] DESIGN.md "Custom download manager" section: the contract, an example request, a 20-line Python receiver example.
|
||||
- [ ] PROGRESS entry, R5-06 tag, INDEX line, commit `S036: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `python3 tests/smoke/net/server.py &` then `tools/smoke.sh tests/smoke/net-downloads.txt` green, server `/log` shows the custom POST with the token header and JSON fields.
|
||||
- `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Cookies go only to loopback; never send them anywhere else. Don't block the main thread on the POST.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Contract location (DESIGN.md section).
|
||||
39
Plans/07 Polish pass/S037-devtools-window.md
Normal file
39
Plans/07 Polish pass/S037-devtools-window.md
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# S037 — DevTools window: Servo devtools bridge, Elements and picker
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: high · Depends on: — · Size: L · Human: no
|
||||
> Files touched: src/devtools/ (new: rdp client, model), src/window.rs (new window kind), src/app.rs, src/hub.rs (devtools server delegate), src/ui/pages/devtools.rs (moves into the window), src/actions.rs, vendor/<servo devtools crate> if needed, tests/smoke/devtools.txt
|
||||
|
||||
## Goal
|
||||
R5-07 part 1 of 2: DevTools becomes a separate pop-up window (undocked; docked = attached to the browser window's
|
||||
side) in the Material You theme, fed by Servo's own devtools server (Firefox Remote Debugging Protocol) as fixed in
|
||||
D-021. This plan builds the window, the protocol client, the Elements panel (DOM tree, styles, computed, box model)
|
||||
and the element picker (hover highlight on the page, click selects in the tree). S038 adds the other panels.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-07 · D-021 · `src/ui/pages/devtools.rs` (what exists) · `src/hub.rs` `notify_devtools_server_started` / `request_devtools_connection`
|
||||
- Servo 0.7 `devtools` crate source (`~/.cargo/registry/src/*/servo-devtools*` or similar): actors list (root, tab/browsing context, walker, inspector, page style, highlighter, console, network event)
|
||||
- `src/window.rs` (window kinds) · `docs/DESIGN.md` "UI system (S015)" · load the `app-taste` skill
|
||||
|
||||
## Steps
|
||||
- [ ] Inventory the actors Servo 0.7 serves and what each returns (one table in `docs/engine/devtools.md`): what is there for Elements/Styles/Box model/Picker/Console/Network/Sources/Storage/Performance, what's missing.
|
||||
- [ ] Start the devtools server on a loopback port with a random token only when DevTools opens (allow only Nacre's own connection in `request_devtools_connection`).
|
||||
- [ ] RDP client in Nacre (TCP, length-prefixed JSON, actor routing, async on a thread, results to the UI by channel); unit test the framing.
|
||||
- [ ] DevTools window: own egui window kind, per-tab target, dock/undock toggle, panel tabs, theme.
|
||||
- [ ] Elements: lazy DOM tree (expand/collapse, attributes, text), live updates from mutation events if served.
|
||||
- [ ] Styles / Computed / Box model from the page-style actor; fill gaps by patching the vendored devtools crate (engine fix, D-021), not by injected JS.
|
||||
- [ ] Picker: highlight under the pointer on the page (highlighter actor or a Servo-side overlay), click selects the node in the tree, Esc cancels.
|
||||
- [ ] F12 / Ctrl+Shift+I and the menu open the window; old `nacre://devtools` tab redirects to it.
|
||||
- [ ] Smoke `tests/smoke/devtools.txt` (offline page): open window, tree shot, select via picker at x,y, styles shot; CLAUDE.md §5 row.
|
||||
- [ ] PROGRESS entry, INDEX line, commit `S037: …`, push.
|
||||
|
||||
## End criteria
|
||||
- devtools.txt green; PNGs show the window with the DOM tree, a picked element highlighted on the page and its styles/box model (read them).
|
||||
- `nice cargo test --release -j 2` green; launch and keys smokes green.
|
||||
|
||||
## Pitfalls
|
||||
- Servo's devtools server may be compiled out or behind a pref: check `servo` features / prefs first.
|
||||
- The devtools server must listen on loopback only; never on 0.0.0.0.
|
||||
- A second OS window shares the GL context rules from S005: check DESIGN.md before creating it.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
`docs/engine/devtools.md` actor table, client API for S038, patched devtools sites.
|
||||
34
Plans/07 Polish pass/S038-devtools-panels.md
Normal file
34
Plans/07 Polish pass/S038-devtools-panels.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# S038 — DevTools panels: Console, Network, Sources, Storage, Performance
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: high · Depends on: S037 · Size: L · Human: no
|
||||
> Files touched: src/devtools/*, vendor/<servo devtools crate>, tests/smoke/devtools.txt, docs/engine/devtools.md
|
||||
|
||||
## Goal
|
||||
R5-07 part 2 of 2: on the S037 window and client, add Console (log levels, filters, evaluation, object inspection
|
||||
with expandable properties), Network (request list, headers, timing, response preview, filters), Sources (script
|
||||
list, view with line numbers; breakpoints only if the server supports them), Storage/Application (cookies, local/session
|
||||
storage, cache), Performance basics (frame times, JS/layout timing if served). Missing data → patch the vendored
|
||||
devtools crate (D-021).
|
||||
|
||||
## Read
|
||||
- `docs/engine/devtools.md` (S037) · the S037 PROGRESS entry · `src/devtools/` client API · D-021
|
||||
|
||||
## Steps
|
||||
- [ ] Console: messages from the console actor (incl. page errors), level filter, search, evaluate, object grips expandable.
|
||||
- [ ] Network: network-event actor list, headers, timing breakdown, response preview, filter by type, clear.
|
||||
- [ ] Sources: list scripts/styles, view source; breakpoints/stepping only if Servo's thread actor supports them (else list as limit).
|
||||
- [ ] Storage: cookies (from servo-net, incl. encrypted jar after S025), local/session storage, edit/delete.
|
||||
- [ ] Performance: frame time graph (Nacre's perf data) + what the server offers; nothing fake.
|
||||
- [ ] Engine gaps for the above patched in the vendored devtools crate, each listed in `docs/engine/devtools.md`.
|
||||
- [ ] Extend devtools.txt with a shot per panel; rerun.
|
||||
- [ ] PROGRESS entry, R5-07 tag, INDEX line, commit `S038: …`, push.
|
||||
|
||||
## End criteria
|
||||
- devtools.txt green; PNGs show each panel with real data from the test page (read them).
|
||||
- `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Don't hold the main thread on protocol replies. Large responses (source, network bodies) load on demand.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
What remains below Chromium DevTools level and why.
|
||||
79
Plans/07 Polish pass/S039-motion.md
Normal file
79
Plans/07 Polish pass/S039-motion.md
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
# S039 — Motion rules and animations
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: medium · Depends on: S035 · Size: M · Human: no
|
||||
> Files touched: src/theme.rs (spring presets), src/ui/{menus,dialogs,chrome,widgets,paint}.rs, src/ui/pages/{settings,downloads,history}.rs, docs/DESIGN.md "UI system" (Motion rules), tests/smoke/motion.txt (new)
|
||||
|
||||
## Goal
|
||||
R5-08: make more of the UI move well. The rules below translate the web "animate" skill
|
||||
(open-design.ai/skills/animate → emilkowalski/skills `animate` SKILL.md + RECIPES.md) into rules for Nacre's egui UI.
|
||||
Copy them into DESIGN.md "UI system" as "Motion rules", then apply them to flyouts, dialogs, toasts, settings page
|
||||
switches, lists and toggles.
|
||||
|
||||
### Motion rules (egui)
|
||||
1. **Gate by frequency first.** Keyboard-triggered actions and anything done 100+ times a day (tab switch, Ctrl+T,
|
||||
Ctrl+L focus, find bar via Ctrl+F, address-bar dropdown rows) change instantly. Tens a day (hover, list
|
||||
navigation): only the `EFFECT` tint spring, no movement. Occasional (flyouts, menus, dialogs, toasts, settings
|
||||
sub-pages, downloads list): standard motion. Rare (welcome, first run, a finished download's done tick): the only
|
||||
place for delight. Zero animation is a valid result.
|
||||
2. **Name one purpose** before adding motion: feedback, spatial (where it came from / went), state, preventing a
|
||||
jarring change, delight (rare tier only). "Looks nice" on a frequent element = no animation. Text the user is
|
||||
reading never moves for style.
|
||||
3. **One tool:** `theme::spring` / `spring_on` / `spring_jump` with presets in `theme.rs`. egui's own
|
||||
`animation_time` stays for its built-ins only. No second animation system, no per-widget magic numbers: new
|
||||
presets go in `theme.rs` next to the others.
|
||||
4. **What moves:** opacity (`ui.multiply_opacity` / painter alpha) and the *paint* offset/scale of an already laid-out
|
||||
layer (Area position offset, `ctx.set_transform_layer` scale around a pivot). Never animate layout sizes that
|
||||
reflow content every frame; the one exception is a collapse/expand section, clipped, short. Never scale from 0:
|
||||
enter at scale 0.95–0.97 + opacity 0. Flyouts, menus and tooltips scale from their anchor (the toolbar button or
|
||||
the pointer); dialogs scale from the centre.
|
||||
5. **Curves → springs.** Entering/exiting = critically damped (no overshoot); moving on screen = critically damped,
|
||||
slightly slower; colour/hover = `EFFECT`. Never an ease-in-like start (no delay before visible motion). Settle
|
||||
times: press feedback 100–160 ms, tooltip 125–200 ms, flyout/menu/dropdown 150–250 ms, dialog 200–300 ms,
|
||||
side sheet/drawer up to 500 ms; UI motion stays under 300 ms unless it's a sheet. Bounce (damping < 1, about 0.1–0.3
|
||||
overshoot) only for things the user drags and lets go (tab drag settle) and rare delight; review the current
|
||||
`FAST`/`DEFAULT`/`SLOW` presets (damping 0.62–0.74 overshoot) against this and add critically damped variants.
|
||||
6. **Interruptible.** Springs retarget from the current value and velocity; toggling twice within a second reverses
|
||||
smoothly, never restarts from 0. **Exit the way it entered**: a closing flyout shrinks back toward its anchor and
|
||||
fades, so closed flyouts/dialogs/toasts keep painting in a "closing" state until their opacity spring is ~0.
|
||||
Asymmetric timing only where the user is deciding (hold-to-confirm: slow linear fill, fast release).
|
||||
7. **Motion setting.** Off = nothing moves or fades (the user chose it); Fast/Normal/Slow scale time (already in
|
||||
`motion_scale`). Every new animation goes through `theme::spring` so the setting applies for free.
|
||||
8. **Lists.** A list seen occasionally (history/downloads flyout opening, new-tab shortcuts) may stagger entries
|
||||
30–80 ms apart, at most the first ~6 rows, opacity + 8 px rise; stagger never blocks clicks. Items added/removed
|
||||
while open slide/fade into place (spatial). Frequent lists don't stagger.
|
||||
9. **Cost.** Request repaints only while a spring is unsettled; nothing animates in hidden windows/tabs; per-frame
|
||||
work stays trivial (egui shares the main thread with Servo). Check `perf` frame numbers before/after.
|
||||
10. **Never ship:** animation on a keyboard shortcut; scale-from-0; overshoot on menus/flyouts/dialogs; motion
|
||||
longer than 300 ms without a reason; a flyout scaling from its centre instead of its anchor; restarting
|
||||
animations on rapid toggles; layout-reflow animation (except collapse); everything entering at once in a long
|
||||
occasional list; an animation that ignores the Motion setting.
|
||||
11. **Check by eye.** Shots mid-motion (selftest frame waits), play at Slow to inspect, and spring tests that assert
|
||||
settle time per preset.
|
||||
|
||||
## Read
|
||||
- `src/theme.rs` "Motion" section (from `// Motion`) · `src/ui/menus.rs` `flyouts`/`placement` · `docs/DESIGN.md` "UI system (S015)"
|
||||
- `src/ui/dialogs.rs` (how dialogs/toasts are shown) · load the `app-taste` skill · `tests/smoke/backgrounds.txt` (perf json)
|
||||
|
||||
## Steps
|
||||
- [ ] Copy the Motion rules into DESIGN.md "UI system"; add the critically damped presets + a settle-time unit test per preset.
|
||||
- [ ] Audit: list every current animation and every candidate with its frequency tier and purpose (PROGRESS or DESIGN.md table); remove motion that fails the gate (e.g. on shortcuts).
|
||||
- [ ] Flyouts and menus: open from the anchor (scale 0.95 + fade), close back to it with a closing state; context menu from the pointer.
|
||||
- [ ] Dialogs (centre scale + scrim fade) and toasts (rise from the bottom, leave the same way, retarget on rapid toasts).
|
||||
- [ ] Settings sub-page and section switches: short crossfade + 8 px shift in the direction of travel; back goes the other way.
|
||||
- [ ] Lists: history/downloads flyout stagger on open; downloads add/remove/progress-done transitions.
|
||||
- [ ] Toggles, chips, segmented buttons, sliders: thumb/indicator springs, press feedback; check against rule 1 (no motion when keyboard-toggled if it's 100+/day).
|
||||
- [ ] Smoke `tests/smoke/motion.txt` (offline): mid-motion and settled shots for each, dark and light, Motion Off shots (instant); perf frame numbers vs before; CLAUDE.md §5 row.
|
||||
- [ ] Rerun chrome, flyouts, settings, sliders, backgrounds, launch smokes; `SMOKE_VISIBLE=1` run of motion.txt for the user to watch.
|
||||
- [ ] PROGRESS entry, R5-08 tag, INDEX line, commit `S039: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test --release -j 2` green incl. the new settle-time tests.
|
||||
- motion.txt green; mid-motion PNGs show anchor-origin scaling/fades, Motion Off shots show none (read them).
|
||||
- backgrounds/perf numbers not worse than before (state them).
|
||||
|
||||
## Pitfalls
|
||||
- egui immediate mode drops a closed Area at once: the closing state must live in `Frame`/memory, not in the widget.
|
||||
- Don't animate the web view itself (its painter is separate).
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Preset names and where the closing-state helper lives (S040 uses it).
|
||||
34
Plans/07 Polish pass/S040-little-things.md
Normal file
34
Plans/07 Polish pass/S040-little-things.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# S040 — Little things sweep
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: medium · Depends on: S033, S034, S035, S039 · Size: M · Human: no
|
||||
> Files touched: src/ui/**, src/ui/icons.rs + tools/icons.txt (if icons are added), tests/smoke/little-things.txt (new)
|
||||
|
||||
## Goal
|
||||
R5-09: "little things all work". A checklist sweep of small details across the whole UI, each item with a smoke
|
||||
shot: icons (state colours, sizes, alignment), empty / loading / error / disabled states, hover and press on every
|
||||
control, keyboard focus rings and tab order, plain copy, plus a re-check that SVG (S033), spelling (S034) and motion
|
||||
(S039) hold in everyday use.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-09 · `docs/DESIGN.md` "UI system (S015)" (tokens, motion rules) · load the `app-taste` skill
|
||||
- `tests/smoke/gallery.txt`, `chrome.txt`, `settings.txt` headers
|
||||
|
||||
## Steps
|
||||
- [ ] Inventory every screen/control (toolbar, tab strip, address bar + dropdown, every flyout, context menu, dialogs, every nacre:// page, settings sections) into a checklist table in `docs/review/phase5-sweep.md` with columns: icons, states, hover/press, focus, copy.
|
||||
- [ ] Smoke `tests/smoke/little-things.txt` shooting each screen in its states (empty, loading, error, disabled, focused, hovered), dark and light; CLAUDE.md §5 row.
|
||||
- [ ] Icons: state colours (active/inactive/disabled), sizes on the 4 px grid, filled vs outlined use consistent.
|
||||
- [ ] States: every list/page has designed empty/loading/error states with plain copy.
|
||||
- [ ] Hover/press: every clickable reacts; keyboard focus visible everywhere, Tab order sane, Esc closes.
|
||||
- [ ] Fix each finding (tick it in the sweep table); anything large goes to PROGRESS "Later".
|
||||
- [ ] Rerun little-things, gallery, chrome, settings, launch smokes; read the PNGs.
|
||||
- [ ] PROGRESS entry, R5-09 tag, INDEX line, commit `S040: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `docs/review/phase5-sweep.md` table all ticked or moved to Later with a reason.
|
||||
- little-things, gallery, chrome, settings smokes green; `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Plain egui widgets left over from before the redesign are the usual offenders: grep for raw `ui.button`/`ui.label` in pages.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
What moved to Later.
|
||||
36
Plans/07 Polish pass/S041-site-passes.md
Normal file
36
Plans/07 Polish pass/S041-site-passes.md
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# S041 — Site passes
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: high · Depends on: S028, S031, S032, S033 · Size: L · Human: 🧑 only the real-account Google sign-in at the end
|
||||
> Files touched: vendor/* (engine fixes), src/inject.rs (site fixes only when the engine can't be reached), tests/smoke/{heavy-web,site-doctor}.txt, docs/engine/site-passes.md (new)
|
||||
|
||||
## Goal
|
||||
R5-10 (high): with MSE merged (S028) and the crash/perf/SVG fixes in, make the everyday sites work: YouTube
|
||||
(search results layout at zero size, playback), Reddit, Wikipedia (search via real Enter), Google sign-in (to the
|
||||
password step), captchas incl. Cloudflare Turnstile (black half-disc widget), GitHub, DuckDuckGo. Fix in the engine
|
||||
(vendored Servo), no workarounds; heavy-web and site-doctor smokes are the gate.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-10 · PROGRESS "Later" (Turnstile, Wikipedia Enter, YouTube result list, mask-image) · `tests/smoke/heavy-web.txt`, `site-doctor.txt` headers
|
||||
- `docs/DESIGN.md` "Engine limits", vendored patch lists · S028/S029 PROGRESS entries
|
||||
|
||||
## Steps
|
||||
- [ ] Baseline: heavy-web + site-doctor (`SMOKE_TIMEOUT=900`), per-site status table in `docs/engine/site-passes.md` (works / broken + cause).
|
||||
- [ ] YouTube: search result list at zero size (layout bug: reduce to a test page, fix in the vendored layout crate); playback via MSE end to end.
|
||||
- [ ] Turnstile black widget: reduce (iframe + shadow DOM / canvas painting), fix in the engine.
|
||||
- [ ] Wikipedia search Enter, Reddit (feed, video, comments), GitHub (repo page, code view, sign-in page), DuckDuckGo (results, images).
|
||||
- [ ] Google sign-in up to the password step with a test email; captchas render and accept a click.
|
||||
- [ ] Each fix gets a reduced offline test page under `tests/smoke/pages/` and a line in a smoke; patch sites listed in DESIGN.md.
|
||||
- [ ] Rerun heavy-web ×2 and site-doctor ×2 plus launch, input, basics smokes; update the table.
|
||||
- [ ] 🧑 Ask the user (via the orchestrator) to sign in with a real Google account and to watch a `SMOKE_VISIBLE=1` heavy-web run; record the result.
|
||||
- [ ] PROGRESS entry, R5-10 tag, Later items removed, INDEX line, commit `S041: …`, push.
|
||||
|
||||
## End criteria
|
||||
- heavy-web and site-doctor green twice in a row (`SMOKE_TIMEOUT=900`), or each remaining failure listed with its engine cause in `docs/engine/site-passes.md`.
|
||||
- Every reduced test page passes offline; `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Sites change and rate-limit (DuckDuckGo): don't hammer; keep reduced offline pages as the real regression tests.
|
||||
- Never connect to Tor/proxies; never type a real password (the user does that).
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Site table, engine patches added, what stays broken.
|
||||
27
Plans/07 Polish pass/S042-phase5-review.md
Normal file
27
Plans/07 Polish pass/S042-phase5-review.md
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# S042 — Phase 5 review with the user
|
||||
|
||||
> Category 07 Polish pass · Model: Sonnet · Effort: medium · Depends on: S031–S041 · Size: S · Human: 🧑 the user tries the build
|
||||
> Files touched: docs/review/phase5.md, docs/PROGRESS.md
|
||||
|
||||
## Goal
|
||||
The user uses the polished build for a while and reports what's still off; every R5 item gets a final tag and new
|
||||
findings become phase 6 notes.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` · last 5 PROGRESS entries
|
||||
|
||||
## Steps
|
||||
- [ ] Release build green; launch, chrome, heavy-web smokes green (commands from CLAUDE.md §5).
|
||||
- [ ] Write a short "what changed in phase 5 / what to try" list for the user (≤ 20 lines) in phase5.md.
|
||||
- [ ] 🧑 User tries it (`SMOKE_VISIBLE=1` runs where they want to watch); record their findings as `R6-NN [open]` in `docs/review/phase6.md`.
|
||||
- [ ] Tag every R5 item fixed / wontfix with reason / moved to R6.
|
||||
- [ ] PROGRESS entry, INDEX line, commit `S042: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `grep -c "\[open\]" docs/review/phase5.md` = 0; `docs/review/phase6.md` exists (may be empty of items if the user found nothing).
|
||||
|
||||
## Pitfalls
|
||||
- Don't fix things in this session: write them down.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Pointer to phase6.md.
|
||||
|
|
@ -47,4 +47,15 @@ Tracker: https://claude.ai/artifact/9AD7fPfwJ4ASFzVTJGKU4h
|
|||
- [ ] [S025 — Cookies encrypted at rest](06%20Privacy/S025-cookie-encryption.md) · Opus medium
|
||||
|
||||
## 07 Polish pass
|
||||
(plans to come from /plan-generate; input: docs/review/phase5.md)
|
||||
- [ ] [S031 — Fix the SIGSEGV after an ad-blocked script load](07%20Polish%20pass/S031-adblock-crash.md) · Opus high
|
||||
- [ ] [S032 — Page load performance pass](07%20Polish%20pass/S032-load-performance.md) · Opus high
|
||||
- [ ] [S033 — SVG and CSS masks render right](07%20Polish%20pass/S033-svg-masks.md) · Opus high
|
||||
- [ ] [S034 — Spelling underlines, inline autofill, "Settings updated" popup](07%20Polish%20pass/S034-small-fixes.md) · Opus medium
|
||||
- [ ] [S035 — History/passwords/bookmarks flyouts and Nacre's own context menu](07%20Polish%20pass/S035-flyouts-context-menu.md) · Opus medium
|
||||
- [ ] [S036 — Custom download manager endpoint](07%20Polish%20pass/S036-custom-download-manager.md) · Sonnet high
|
||||
- [ ] [S037 — DevTools window: Servo devtools bridge, Elements and picker](07%20Polish%20pass/S037-devtools-window.md) · Opus high
|
||||
- [ ] [S038 — DevTools panels: Console, Network, Sources, Storage, Performance](07%20Polish%20pass/S038-devtools-panels.md) · Opus high
|
||||
- [ ] [S039 — Motion rules and animations](07%20Polish%20pass/S039-motion.md) · Opus medium
|
||||
- [ ] [S040 — Little things sweep](07%20Polish%20pass/S040-little-things.md) · Opus medium
|
||||
- [ ] [S041 — Site passes](07%20Polish%20pass/S041-site-passes.md) · Opus high · 🧑
|
||||
- [ ] [S042 — Phase 5 review with the user](07%20Polish%20pass/S042-phase5-review.md) · Sonnet medium · 🧑
|
||||
|
|
|
|||
|
|
@ -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