plans: fix round S059–S066 (tab lifecycle, PiP, site menus, memory saver, nacre:// lockdown, history flyout, custom manager, alignment)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-18 00:52:12 -06:00
commit d33c5619a3
11 changed files with 278 additions and 9 deletions

View file

@ -13,7 +13,8 @@ Storage, networking, ad blocker, media, importer, updates, keys, the WebKit host
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. **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. **WebKit engine** (`Plans/08 WebKit engine`, D-032–D-040, runs first) — GTK 4 host with the egui overlay over WebKitGTK 6.0 views, engine callbacks, ad block via content filters + web process extension, network/privacy/downloads, profile and sealed cookies, tuning defaults, Servo removal (done, S053), site pass vs Chromium; Widevine later.
7. Packaging and release (Linux AppImage/tar.gz, Windows installer and zip) when the user asks.
7. **Fix round** (`Plans/09 Fix round`, D-048–D-050, after S054) — stuck tabs and view cleanup, PiP focus, site context menus and click-through ads, memory saver, nacre:// lockdown, history flyout and About list, custom download manager by port, UI alignment.
8. 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).

View file

@ -0,0 +1,39 @@
# S059 — Tab lifecycle: stuck pages, nacre:// pages unloading, script message handler
> Category 09 Fix round · Model: Opus · Effort: high · Depends on: S054 (its uncommitted `actions.rs` closing-tab fix lands first) · Size: M · Human: no
> Files touched: src/app.rs (tab close/closing, slow_tick), src/actions.rs (close_tab, navigate, Command::Reload), src/engine/host.rs (create_view, forget), src/engine/view.rs, src/window.rs (detach), src/tabs.rs, tests/smoke/stuck.txt (new)
## Goal
Three faults in how tabs live and die (user report, D-048 testing rule):
1. After some use a tab stops answering: the settings page didn't scroll and Reload did nothing; only a new tab helped (seen more than once). Find the **root cause**, don't paper over it. Leads: `tab.closing` set by a `beforeunload` close (`actions.rs:237`, `app.rs:1562`) and never cleared when the tab stays (Reload/navigation then ignored); egui input state stuck on that tab (pointer capture, open flyout/dialog, `tab.dialog` left `Some`); `egui_area.rs` `watch_stalls` log line.
2. nacre:// pages don't unload when closed: a tab showing an egui page (`tab.page`) may still hold a web view behind it (a web page that navigated to nacre://, the new tab) — closing must free the view and the page's state.
3. stderr `CRITICAL: Script message nacre received after the WebKitUserContentManager has been destroyed`: the `nacre` handler registered in `create_view` (`host.rs:565`) is never unregistered; unregister it (and disconnect) when a view is closed/forgotten, before the manager drops.
## Read
- `src/engine/host.rs` `create_view`, `forget` (560–595); `src/engine/view.rs`
- `src/actions.rs` `close_tab` (~1077), the `beforeunload` close path (~230–245), navigate (~1130), `Command::Reload`
- `src/app.rs` closing handling (~700–760, 1125–1140, 1555–1620)
- `src/window.rs` `detach`, layout of the shown tab (~150)
- Last 3 PROGRESS entries (S054's fix of a closing tab)
## Steps
- [ ] Reproduce 1 with the selftest: tab whose page answers `beforeunload`, close cancelled / page kept, then Reload and scroll; also an open flyout or dialog left on a tab you switch away from. Write down which state stays stuck (log it, don't guess).
- [ ] Fix the root cause of 1; add a guard so a stuck `closing`/`dialog` state can't silently eat Reload (log a line if it ever happens).
- [ ] 2: closing a tab (or navigating away from) a nacre:// page drops its web view (`detach` + `engine.forget`) and clears page state; a web page navigating to nacre:// keeps no hidden live view.
- [ ] 3: unregister the `nacre` script message handler and disconnect its handler on view close/forget; CRITICAL line gone.
- [ ] Unit test for the pure part (closing state rules) where feasible.
- [ ] `tests/smoke/stuck.txt` (offline): the repro of 1 + close a nacre:// tab + close a web tab while its page posts messages; asserts Reload works, view count drops, `nacre.log` has no `CRITICAL`. Run it and `basics.txt` only (D-048).
- [ ] PROGRESS entry, INDEX line, tracker, commit `S059: …`, push.
## End criteria
- `nice cargo test --release -j 2` green.
- `tools/smoke.sh tests/smoke/stuck.txt` and `tests/smoke/basics.txt` exit 0; `grep -c CRITICAL <out>/nacre.log` = 0.
- PROGRESS names the root cause of 1 in one line.
## Pitfalls
- Never touch `App` inside a WebKit signal handler; queue events.
- Unregister before the `UserContentManager` drops, not after `forget` removed the last ref.
- If 1 can't be reproduced, say so and leave the guard + log line; don't invent a cause.
## Handoff (→ PROGRESS.md)
Root cause of the stuck tab, how views are freed on close, the guard's log line text.

View file

@ -0,0 +1,31 @@
# S060 — Picture in picture keeps working (focus)
> Category 09 Fix round · Model: Opus · Effort: medium · Depends on: — · Size: S · Human: 🧑 user tries PiP on their screen at the end
> Files touched: src/actions.rs (enter_pip/exit_pip, ClosePip), src/app.rs (PiP window open/close ~1320–1350, ~1620), src/window.rs (pip_view), src/egui_area.rs (focus only if needed)
## Goal
PiP worked once; on later tries the PiP window keeps handing focus back to the tab's window (Nacre's UI, not the page). Find why the second and later PiP windows lose focus/close, fix it, and make enter → exit → enter work any number of times.
## Read
- `src/actions.rs` `enter_pip`, `exit_pip`, `Command::{EnterPip,ExitPip,ClosePip,PipAct}` (~670–700)
- `src/app.rs` window creation for `Kind::Pip` (~1320–1350) and close (~1620–1630), PiP handling (~745–760)
- `src/window.rs` `pip_view` attach/detach
- `tests/smoke/pip.txt`, `pip-return.txt`, `tools/hidden.sh` + `pip-driver.sh` headers
## Steps
- [ ] Reproduce: hidden run doing PiP enter/exit three times (`pip-driver.sh` style, `windows.json` per round); record which window is focused and whether the view moved each round.
- [ ] Fix the cause (stale `pip_view`, a `present()`/`grab_focus` on the source window, a leftover Kind::Pip window, or the source tab's view re-attached while PiP is open).
- [ ] Extend `pip.txt` (or the driver) with the three-round loop; run it and `pip-return.txt` only (D-048).
- [ ] 🧑 Ask the user (via the orchestrator) to try PiP 3× on YouTube on their screen; note the answer.
- [ ] PROGRESS entry, INDEX line, tracker, commit `S060: …`, push.
## End criteria
- Hidden PiP loop exits 0 with the PiP window floating and focused in rounds 1–3 (`windows.json`).
- User confirms, or PROGRESS says not confirmed.
## Pitfalls
- niri decides focus; check what Nacre asks for (`present`, `set_focus`) before blaming the compositor.
- The user's niri window rule for `dev.nacre.Nacre.Pip` exists; don't change their config.
## Handoff (→ PROGRESS.md)
Cause, and the PiP loop smoke.

View file

@ -0,0 +1,35 @@
# S061 — A site's own context menu wins; video clicks don't open ads
> Category 09 Fix round · Model: Opus · Effort: medium · Depends on: S059 · Size: M · Human: 🧑 user checks the adult video site if the agent can't load it
> Files touched: src/engine/host.rs (connect_context_menu ~840, create/new-window policy), src/inject.rs (contextmenu listener ~128), src/app.rs (PageMenu ~1078), src/ui/menus.rs, src/actions.rs (pop-up/new window handling), tests/smoke/pages/ (new test pages), tests/smoke/ctxmenu.txt
## Goal
1. Context menu priority: there is a mechanism (page's `contextmenu` listener + `connect_context_menu`) that worked once, but on YouTube's player a later right-click showed Nacre's menu instead of YouTube's. Sites with their own menu (YouTube player, Discord, Google Docs, Figma…) must always get theirs: if the page called `preventDefault()` on `contextmenu`, Nacre shows nothing. Make it consistent on every right-click. Also take over S035's leftover menu work: keyboard navigation and Esc in Nacre's menu.
2. On some video sites (user's report: xgroovy) a click on the player opens an ad (pop-under / new tab / overlay link) instead of playing. Find what Nacre does differently from Chromium (pop-up policy, user-gesture check on `window.open`, `create` signal handling, ad-block cosmetic rules leaving a transparent click-catcher) and fix it.
## Read
- `src/engine/host.rs` `connect_context_menu` (~840–875) and the `create` / new-window signal
- `src/inject.rs` contextmenu and click listeners (~118–145)
- `src/app.rs` ~1070–1090 (`PageMenu`), `src/ui/menus.rs` page menu
- Pop-up policy in `src/actions.rs` (grep `Disposition::NewForegroundTab`, `popup`)
- `tests/smoke/ctxmenu.txt` header
## Steps
- [ ] Find why priority is lost on repeat clicks (e.g. `defaultPrevented` read before the page's listener ran, a stale "site menu" flag per view, YouTube's listener on a different target/phase). Fix so `defaultPrevented` decides each time.
- [ ] Test page `tests/smoke/pages/site-menu.html`: own menu that toggles like YouTube's (first right-click custom, second native), plus a Discord-style always-custom area; extend `ctxmenu.txt` to right-click each 3×.
- [ ] Nacre's menu: arrow keys, Enter, Esc (from S035).
- [ ] Ad on click: local repro page (player under a transparent full-size link + `window.open` on first click, like pop-under scripts); make Nacre block the un-gestured/pop-under window and let the click reach the video. Then load the real site once in a hidden run if it isn't refused; if refused or blocked, hand it to the user (🧑) with the steps.
- [ ] Run `ctxmenu.txt` and the new click test only (D-048).
- [ ] PROGRESS entry, INDEX line (also mark S035 superseded), tracker, commit `S061: …`, push.
## End criteria
- `ctxmenu.txt` exit 0: site menu shown (no Nacre menu) on every right-click where the page prevents default; Nacre's menu elsewhere; keys work.
- Click test exit 0: no extra tab/window, video `paused == false`.
- PROGRESS says whether the real site was checked by the agent or left to the user.
## Pitfalls
- Never connect through Tor or proxies. Adult site: one hidden load, no account, nothing else on it.
- Don't break pop-up sign-in windows (OAuth `window.open` from a click) — keep `pop-up` smoke cases in `basics.txt` in mind; run it only if you touched that path.
## Handoff (→ PROGRESS.md)
Priority rule as implemented; what blocked the ad click.

View file

@ -0,0 +1,31 @@
# S062 — Memory saver that actually unloads, sliders, resting tab icons
> Category 09 Fix round · Model: Sonnet · Effort: high · Depends on: — · Size: S · Human: no
> Files touched: src/app.rs (rest_background_tabs ~1238, slow_tick), src/perf.rs (tab_rest_minutes), src/store/settings.rs (perf), src/ui/pages/settings.rs (~690–700), src/ui/chrome.rs (tab strip), src/ui/widgets.rs (slider if missing), tests/smoke/rest.txt (new)
## Goal
User report: memory saver / "Freeze background tabs" doesn't catch. Check that hidden tabs really unload after `discard_min` (web view dropped, process memory freed) and get marked after `freeze_min`; show unloaded and frozen tabs in the tab strip (dimmed icon / small mark, like Chromium's); replace the preset time chips with sliders.
## Read
- `src/app.rs` `slow_tick`, `rest_background_tabs` (~1210–1270); `src/perf.rs` `tab_rest_minutes`
- `src/window.rs` ~150 (`last_shown`, `frozen` reset); `src/tabs.rs` Tab fields
- `src/ui/pages/settings.rs` Tabs section (~690–700); tab drawing in `src/ui/chrome.rs`
- `src/ui/widgets.rs` (existing slider, as used by Interface size)
## Steps
- [ ] Check with a selftest run and short times (env or settings override, e.g. 1 min): does `slow_tick` run often enough, is `last_shown` right for tabs never shown, are lazily restored/pinned/audible tabs skipped as intended; does the web process count/PSS drop after unload. Fix what's wrong.
- [ ] Tab strip: unloaded tab = dimmed favicon (+ tooltip "Unloaded to save memory"), frozen = lighter dim; cleared when shown.
- [ ] Settings: Memory saver and Freeze each a slider (Off … 4 h for unload, Off … 60 min for freeze; snapping steps, value label "Off"/"15 min"/"1 h"), stored in the existing `discard_min`/`freeze_min`.
- [ ] Unit test for `tab_rest_minutes` with the new ranges.
- [ ] `tests/smoke/rest.txt` (offline): 3 tabs, short times, assert `has_web` false / `frozen` true on hidden ones, shot of the strip dark and light. Run it only (D-048).
- [ ] PROGRESS entry, INDEX line, tracker, commit `S062: …`, push.
## End criteria
- `cargo test` green; `rest.txt` exit 0; strip shot shows dimmed tabs; settings shot shows sliders.
## Pitfalls
- WebKit has no freeze call (S052): "frozen" stays a strip state; texts must not promise more.
- Never unload the active tab, a playing tab, or one in PiP.
## Handoff (→ PROGRESS.md)
What was wrong with unloading, the slider ranges.

View file

@ -0,0 +1,34 @@
# S063 — Lock down nacre:// pages; passwords unlock on every open
> Category 09 Fix round · Model: Opus · Effort: medium · Depends on: S059 · Size: M · Human: no
> Files touched: src/actions.rs (navigation policy ~1310), src/engine/host.rs (policy/new-window), src/ui/pages/mod.rs (Page::from_url), src/ui/pages/passwords.rs, src/store/vault.rs, src/store/session.rs, src/tabs.rs, tests/smoke/nacre-lock.txt (new)
## Goal
D-049. Today any web page can reach internal pages: `actions.rs` turns a page's navigation to `nacre://…` into `tab.page` (so a link, redirect, `location=` or `window.open` to `nacre://passwords` opens it). Fix:
1. Web content can never open, redirect to, frame or pop up a nacre:// URL (deny silently, log one line). Only the user (address bar, menus, buttons, shortcuts, bookmarks they click) opens them. Keep `nacre://allowcert` working only from Nacre's own certificate page.
2. `nacre://passwords` asks for the vault unlock every time it opens (even if the vault is unlocked for autofill), relocks its view when the tab is hidden, switched, navigated or closed, and is never saved in or restored from the session (restores as new tab).
3. No password data in egui state after relock (clear the page's revealed/copied fields).
## Read
- `src/actions.rs` navigation decision (~1280–1330), `Page::from_url` in `src/ui/pages/mod.rs`
- `src/ui/pages/passwords.rs`; `src/store/vault.rs` (unlock/autolock API)
- `src/store/session.rs` + `Tab::saved` (how pages are saved)
## Steps
- [ ] Mark navigations as user-made vs web-made (WebKit `NavigationAction::navigation_type` / `is_user_gesture` + whether Nacre started it); deny web-made nacre:// in the policy and in new-window requests.
- [ ] Passwords: per-open unlock gate, relock on hide/switch/navigate/close, state cleared.
- [ ] Session: never save `nacre://passwords`.
- [ ] Unit tests: the allow/deny rule for nacre:// (pure function), session filter.
- [ ] `tests/smoke/nacre-lock.txt` (offline): a local page with a link, a redirect, `window.open`, and an iframe to `nacre://passwords` → tab never shows the page; address bar open → unlock prompt; switch tab and back → prompt again. Run it only (D-048).
- [ ] DESIGN.md: a short "Internal pages" note with the rule.
- [ ] PROGRESS entry, INDEX line, tracker, commit `S063: …`, push.
## End criteria
- `cargo test` green; `nacre-lock.txt` exit 0 with the asserts above.
## Pitfalls
- Don't break nacre:// links inside Nacre's own egui pages (they're not web content).
- Error/cert pages rendered by Nacre may navigate to nacre:// on purpose: keep that path explicit.
## Handoff (→ PROGRESS.md)
The rule (D-049) and where it's enforced.

View file

@ -0,0 +1,31 @@
# S064 — History flyout, bookmark flyout on tab switch, About lists nacre:// pages
> Category 09 Fix round · Model: Sonnet · Effort: high · Depends on: — · Size: S · Human: no
> Files touched: src/ui/chrome.rs (right buttons ~480–530, Flyout enum), src/ui/menus.rs or a new flyout fn, src/ui/pages/history.rs (row reuse), src/ui/pages/misc.rs (about ~203), src/ui/pages/mod.rs (Page list), src/actions.rs (Action::History), tests/smoke/flyouts.txt (new)
## Goal
From the user and S035 (superseded):
1. The History toolbar button opens a flyout like Downloads/Bookmarks, not a tab: search field, Today/Yesterday/Earlier groups, favicon + title + time rows (same row code as `nacre://history`, DRY), click opens, middle-click new tab, "Open full page", empty state. Ctrl+H keeps opening the full page.
2. The bookmark flyout (and any flyout tied to a page) closes on tab switch and navigation.
3. About page lists every nacre:// page as clickable links, built from one list in `src/ui/pages/mod.rs` (no hand-kept copy; the address-bar suggestions at `chrome.rs:839` use the same list). Not `nacre://allowcert` or other internal-only URLs.
## Read
- `src/ui/chrome.rs` Flyout enum, `RIGHT_BUTTONS`, the "history"/"downloads"/"bookmarks" button code (~470–530), suggestions (~839)
- `src/ui/pages/history.rs`, `src/ui/pages/misc.rs` `about`, `src/ui/pages/mod.rs` `Page` + `from_url`/`url`
## Steps
- [ ] One `Page::ALL_PUBLIC` (or similar) list; About and suggestions use it; About section "Nacre pages".
- [ ] History flyout as above, reusing history rows.
- [ ] Page-tied flyouts close on tab switch/navigation.
- [ ] Unit test: every listed page round-trips `from_url(url())`.
- [ ] `tests/smoke/flyouts.txt` (offline): history flyout with a few visits, empty state, about page; dark and light shots. Run it only (D-048).
- [ ] PROGRESS entry, INDEX line, tracker, commit `S064: …`, push.
## End criteria
- `cargo test` green; `flyouts.txt` exit 0; shots show the flyout and the About list.
## Pitfalls
- Passwords flyout from S035 is dropped (conflicts with D-049 unlock on every open).
## Handoff (→ PROGRESS.md)
Where the page list lives.

View file

@ -0,0 +1,31 @@
# S065 — Custom download manager by name and port
> Category 09 Fix round · 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 → Download managers), docs/DESIGN.md, tests/smoke/net/server.py, tests/smoke/net-downloads.txt
## Goal
Replaces S036; D-050 (amends D-022). On the "Download managers" page (user screenshot) the user adds their own manager: a **name** and a **port**. It shows in the Managers list like the others (switch, "Found · port N" / "Not running"), can be chosen in "New downloads go to", and receives downloads on `http://127.0.0.1:<port>/` with the D-022 JSON body (POST = hand-over, GET = status ping, any 2xx = OK, else Nacre downloads itself and says why). Several custom entries allowed; remove button per entry.
## Read
- `docs/DECISIONS.md` D-022; `src/net/dlm.rs` (whole, 198 lines)
- `src/ui/pages/settings.rs` download managers sub-page; `src/store/settings.rs` downloads part
- `tests/smoke/net/server.py`, `tests/smoke/net-downloads.txt` headers
## Steps
- [ ] Settings model: `custom_managers: Vec<{name, port, enabled}>` with defaults; port 1–65535 validated, loopback only (no host field).
- [ ] dlm: status ping and hand-over for custom entries per D-022; fall back with a toast.
- [ ] Settings UI: "Add your own" row (name + port fields, Add), entries listed with status and switch, remove.
- [ ] Unit tests: payload building, port validation.
- [ ] server.py stub route on a port + `net-downloads.txt` case (handed over; fallback when down). Run it only (D-048).
- [ ] DESIGN.md "Custom download manager": contract, example request, ~20-line Python receiver.
- [ ] PROGRESS entry, INDEX line (also mark S036 superseded), tracker, commit `S065: …`, push.
## End criteria
- `cargo test` green; `net-downloads.txt` exit 0 with the custom case; server log shows the JSON body.
## Pitfalls
- Loopback only: cookies never leave the machine.
- Start `python3 tests/smoke/net/server.py &` before the smoke; stop it after.
## Handoff (→ PROGRESS.md)
Settings field names, contract location in DESIGN.md.

View file

@ -0,0 +1,28 @@
# S066 — UI alignment pass (/unslop)
> Category 09 Fix round · Model: Opus · Effort: medium · Depends on: S059–S065 · Size: M · Human: 🧑 user looks at the before/after shots
> Files touched: src/ui/chrome.rs, src/ui/menus.rs, src/ui/widgets.rs, src/ui/pages/*.rs, src/ui/paint.rs, src/theme.rs (only spacing/size tokens)
## Goal
Some UI elements don't line up (user's screenshots: PiP media bar — "Go to tab" / "Mute site" off the control row's grid and centre; Download managers page — "Check again" button not on the cards' left edge, mixed row heights; context menu spacing). Run the `/unslop` skill (with `app-taste` rules) over Nacre's chrome, flyouts, menus and nacre:// pages: one spacing grid, flush edges, consistent row heights and baselines. Keep today's look and colours (no redesign; UI-BRIEF stays the reference).
## Read
- `docs/UI-BRIEF.md` (tokens part); `src/theme.rs` spacing/size constants; `src/ui/widgets.rs`
- The user's screenshots described above; `tests/smoke/gallery.txt`, `chrome.txt`, `settings.txt` headers
## Steps
- [ ] Before shots: `gallery.txt`, `chrome.txt`, settings Download managers page, media flyout with a playing tab, context menu (one run each).
- [ ] Invoke `/unslop`; list misalignments found (file:line) in PROGRESS draft.
- [ ] Fix them through shared widgets/tokens first, one-offs last.
- [ ] After shots of the same set; compare pairs; 🧑 hand the pairs to the user.
- [ ] PROGRESS entry, INDEX line, tracker, commit `S066: …`, push.
## End criteria
- `cargo test` green; the after-shot smokes exit 0; PROGRESS lists each fixed misalignment.
## Pitfalls
- Spacing only; no new colours, fonts or motion (S039 owns motion).
- Don't rerun every smoke (D-048): only the shot set above.
## Handoff (→ PROGRESS.md)
Tokens changed, where to look for remaining nits.

View file

@ -4,17 +4,22 @@ One session = one plan: `Plans/<NN Category>/SNNN-slug.md`. Sessions tick their
Tracker: https://claude.ai/artifact/9AD7fPfwJ4ASFzVTJGKU4h
Done (details in git, PROGRESS, DECISIONS): 01 First build S001–S004 · 02 Verify S005–S009 · 04 UI redesign S015–S021 · 05 Engine S022, S026–S028 · 06 Privacy S023–S025 · 07 S031 · 08 S044–S050, S056.
Done (details in git, PROGRESS, DECISIONS): 01 First build S001–S004 · 02 Verify S005–S009 · 04 UI redesign S015–S021 · 05 Engine S022, S026–S028 · 06 Privacy S023–S025 · 07 S031 · 08 S044–S053, S056–S058.
Dropped with Servo (D-032): S011, S029, S030, S032, S033, S037, S038.
## 08 WebKit engine (in this order)
- [x] [S053 — Remove Servo: vendor crates, gst-mse, Servo-only tests/tools, docs and texts](08%20WebKit%20engine/S053-servo-removal.md) · Sonnet high
- [x] [S057 — Small UI bugs: Customize panel scroll, site colour from the favicon, colour picker glyphs, beforeunload on quit](08%20WebKit%20engine/S057-small-ui-bugs.md) · Sonnet high
- [x] [S058 — Ads vanish before your eyes: Pie-style cookie shield removal animation (port of the original)](08%20WebKit%20engine/S058-ad-removal-animation.md) · Opus medium
- [x] [S051 — Profile folder, sealed cookies, site data, incognito, media source](08%20WebKit%20engine/S051-profile-cookies-media.md) · Opus medium
- [x] [S052 — WebKit tuning defaults, background tabs, memory check](08%20WebKit%20engine/S052-tuning-defaults.md) · Sonnet high
- [ ] [S054 — Site pass on WebKit vs Chromium reference](08%20WebKit%20engine/S054-site-pass.md) · Opus high
## 09 Fix round (after S054; S059 first, S060/S062/S064/S065 can run beside it; S066 last)
- [ ] [S059 — Tab lifecycle: stuck pages, nacre:// pages unloading, script message handler](09%20Fix%20round/S059-tab-lifecycle.md) · Opus high
- [ ] [S060 — Picture in picture keeps working (focus)](09%20Fix%20round/S060-pip-focus.md) · Opus medium · 🧑
- [ ] [S061 — A site's own context menu wins; video clicks don't open ads](09%20Fix%20round/S061-site-menus-clickthrough.md) · Opus medium · 🧑
- [ ] [S062 — Memory saver that actually unloads, sliders, resting tab icons](09%20Fix%20round/S062-memory-saver.md) · Sonnet high
- [ ] [S063 — Lock down nacre:// pages; passwords unlock on every open](09%20Fix%20round/S063-nacre-pages-lockdown.md) · Opus medium
- [ ] [S064 — History flyout, bookmark flyout on tab switch, About lists nacre:// pages](09%20Fix%20round/S064-history-flyout-about.md) · Sonnet high
- [ ] [S065 — Custom download manager by name and port](09%20Fix%20round/S065-custom-manager-port.md) · Sonnet high
- [ ] [S066 — UI alignment pass (/unslop)](09%20Fix%20round/S066-ui-alignment.md) · Opus medium · 🧑
## 02 Verify / 03 Gaps (after 08; reviews need the user)
- [ ] [S010 — Phase 2 review with the user](02%20Verify/S010-phase2-review.md) · Sonnet medium · 🧑
- [ ] [S012 — Fixes from the user's reviews](03%20Gaps/S012-review-fixes.md) · Opus medium
@ -23,8 +28,8 @@ Dropped with Servo (D-032): S011, S029, S030, S032, S033, S037, S038.
## 07 Polish pass (UI cleanup and motion)
- [ ] [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
- [ ] [S035 — History/passwords/bookmarks flyouts and Nacre's own context menu](07%20Polish%20pass/S035-flyouts-context-menu.md) · superseded by S061, S064
- [ ] [S036 — Custom download manager endpoint](07%20Polish%20pass/S036-custom-download-manager.md) · superseded by S065
- [ ] [S039 — Motion rules and animations](07%20Polish%20pass/S039-motion.md) · Opus medium (+ `docs/ui-motion-audit.md` blocks A–E)
- [ ] [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 · 🧑

View file

@ -51,3 +51,6 @@
- D-045 — 2026-11-13 — Visible test runs on DP-1 may take focus or switch the workspace; amends D-044 (no focus rule needed). Use them where they prove more than hidden runs (real GPU, video, real input); hidden stays fine for quick checks. — user, 2026-11-13 ("just run it, I never cared about running it with focus") — every plan with GUI tests
- D-046 — 2026-11-13 — Developer tools are WebKit's Web Inspector: F12 opens it attached for the active web tab, `nacre://devtools` only lists tabs to inspect and switches remote inspection (127.0.0.1:6080); Nacre has no console or network page of its own. Pop-ups open as tabs next to their opener (related views). — S048 (plan let the session pick the smaller option) — later devtools, net-log and pop-up work
- D-047 — 2026-11-14 — S051 details of D-037/D-038/D-039: the sealed cookies are a JSON list read from and written into libsoup's `moz_cookies` SQLite table with rusqlite (synchronous, so the quit seal needs no main-loop round trip); the tmpfs folder name carries a hash of the data folder so a test home never meets the user's running browser; a database left by a crashed run wins over `cookies.bin`. Clear data deletes cookies whole whatever the time range (WebKit's libsoup store has no cookie dates). WebKitGTK publishes its own MPRIS player per playing web process; Nacre publishes none, so D-039's "one player" holds and S013 shrinks to what WebKit's player lacks (DesktopEntry is empty; several players when several web processes play). — S051 — S013, later cookie or MPRIS work
- D-048 — 2026-11-18 — Testing is targeted: each plan runs the smoke it adds or the one or two its change touches, never whole suites again; problems noticed elsewhere are reported in PROGRESS, not chased. — Earlier rounds spent much on repeated full runs that missed the real bugs. — S059–S066
- D-049 — 2026-11-18 — Internal pages: web content never opens, redirects to, frames or pops up a `nacre://` URL; only the user's own actions open them. `nacre://passwords` asks for the vault unlock on every open, relocks when its tab is hidden, switched, navigated or closed, and is never saved in the session. — Pages could open nacre://passwords with a link. — S063
- D-050 — 2026-11-18 — Amends D-022: a custom download manager is a user-given name + loopback port (several allowed), listed with the built-in managers; the endpoint is `http://127.0.0.1:<port>/` with D-022's body, ping and fallback. S036 superseded by S065. — User's choice. — S065