From 583a92b85445a1d78690ffca9019e0dde45dd4e6 Mon Sep 17 00:00:00 2001 From: astar76 Date: Wed, 18 Nov 2026 05:12:09 -0600 Subject: [PATCH] S063: web pages can't open nacre:// pages; the passwords page asks on every open and isn't kept in the session Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 +- .../09 Fix round/S063-nacre-pages-lockdown.md | 14 +-- Plans/INDEX.md | 2 +- docs/DESIGN.md | 15 +++ docs/PROGRESS.md | 9 ++ src/actions.rs | 11 +-- src/app.rs | 16 +++- src/engine/host.rs | 9 ++ src/selftest.rs | 5 +- src/store/session.rs | 20 ++++ src/tabs.rs | 29 +++++- src/ui/mod.rs | 3 + src/ui/pages/mod.rs | 25 +++++ src/ui/pages/passwords.rs | 24 ++++- tests/smoke/nacre-lock.txt | 93 +++++++++++++++++++ tests/smoke/net/server.py | 3 + tests/smoke/pages/nacre-lock.html | 11 +++ tests/smoke/pages/nacre-refresh.html | 6 ++ 18 files changed, 273 insertions(+), 24 deletions(-) create mode 100644 tests/smoke/nacre-lock.txt create mode 100644 tests/smoke/pages/nacre-lock.html create mode 100644 tests/smoke/pages/nacre-refresh.html diff --git a/CLAUDE.md b/CLAUDE.md index f817ff3..1a444fe 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -64,7 +64,7 @@ Never modify: `~/Documents/Apps/Nacre` (the original Python Nacre, reference onl | `nice cargo build --release -j 2` | compile check, produces `target/release/nacre` | now | | `nice cargo test --release -j 2` | unit tests (44, ~16 s test-profile build then <1 s run; shares the S001 build) (util, settings, history, bookmarks, permissions, vault, dns, bridge loopback, download, adblock, keys, scripts, updates, inject, hub, theme, ui::widgets input, ui::paint, ui::pages::newtab) | first successful build; not alongside a build | | `src/selftest.rs` | in-app self test: `NACRE_SCRIPT=` runs script commands (listed at its top) | now | -| `tools/smoke.sh