From e7bade29b5c499eea0ea13a9e320c363f42cb806 Mon Sep 17 00:00:00 2001 From: astar76 Date: Thu, 12 Nov 2026 19:28:46 -0600 Subject: [PATCH] =?UTF-8?q?plans:=2007=20Polish=20pass=20(S031=E2=80=93S04?= =?UTF-8?q?2)=20from=20phase5.md;=20D-020=E2=80=93D-023?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- PLAN.md | 3 +- Plans/07 Polish pass/S031-adblock-crash.md | 39 +++++++++ Plans/07 Polish pass/S032-load-performance.md | 35 ++++++++ Plans/07 Polish pass/S033-svg-masks.md | 36 +++++++++ Plans/07 Polish pass/S034-small-fixes.md | 36 +++++++++ .../S035-flyouts-context-menu.md | 38 +++++++++ .../S036-custom-download-manager.md | 32 ++++++++ Plans/07 Polish pass/S037-devtools-window.md | 39 +++++++++ Plans/07 Polish pass/S038-devtools-panels.md | 34 ++++++++ Plans/07 Polish pass/S039-motion.md | 79 +++++++++++++++++++ Plans/07 Polish pass/S040-little-things.md | 34 ++++++++ Plans/07 Polish pass/S041-site-passes.md | 36 +++++++++ Plans/07 Polish pass/S042-phase5-review.md | 27 +++++++ Plans/INDEX.md | 13 ++- docs/DECISIONS.md | 4 + 15 files changed, 483 insertions(+), 2 deletions(-) create mode 100644 Plans/07 Polish pass/S031-adblock-crash.md create mode 100644 Plans/07 Polish pass/S032-load-performance.md create mode 100644 Plans/07 Polish pass/S033-svg-masks.md create mode 100644 Plans/07 Polish pass/S034-small-fixes.md create mode 100644 Plans/07 Polish pass/S035-flyouts-context-menu.md create mode 100644 Plans/07 Polish pass/S036-custom-download-manager.md create mode 100644 Plans/07 Polish pass/S037-devtools-window.md create mode 100644 Plans/07 Polish pass/S038-devtools-panels.md create mode 100644 Plans/07 Polish pass/S039-motion.md create mode 100644 Plans/07 Polish pass/S040-little-things.md create mode 100644 Plans/07 Polish pass/S041-site-passes.md create mode 100644 Plans/07 Polish pass/S042-phase5-review.md diff --git a/PLAN.md b/PLAN.md index d952681..b3831f9 100644 --- a/PLAN.md +++ b/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). diff --git a/Plans/07 Polish pass/S031-adblock-crash.md b/Plans/07 Polish pass/S031-adblock-crash.md new file mode 100644 index 0000000..fdcc67c --- /dev/null +++ b/Plans/07 Polish pass/S031-adblock-crash.md @@ -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 `