From da5a73768a34164b7e5a7ff9437d7b4d6a8d0bc3 Mon Sep 17 00:00:00 2001 From: astar76 Date: Thu, 12 Nov 2026 11:39:41 -0600 Subject: [PATCH] S008: importer smoke on fake Chrome and Firefox profiles Co-Authored-By: Claude Sonnet 5.5 --- Plans/02 Verify/S008-verify-stores.md | 2 +- src/selftest.rs | 5 +++ tests/smoke/make-import-home.py | 44 +++++++++++++++++++++++++++ tests/smoke/stores-import.txt | 28 +++++++++++++++++ 4 files changed, 78 insertions(+), 1 deletion(-) create mode 100755 tests/smoke/make-import-home.py create mode 100644 tests/smoke/stores-import.txt diff --git a/Plans/02 Verify/S008-verify-stores.md b/Plans/02 Verify/S008-verify-stores.md index f7bd284..bd0fe56 100644 --- a/Plans/02 Verify/S008-verify-stores.md +++ b/Plans/02 Verify/S008-verify-stores.md @@ -16,7 +16,7 @@ Verify passwords/vault and autofill, permissions prompts, history/bookmarks/down - [x] Permissions: a local page asking for notifications/geolocation/camera; allow/deny/remember; check `permissions` store - [x] History, bookmarks (add, folder, bookmarks bar, import/export HTML), downloads page lists entries - [x] User scripts/styles apply on matching pages; install a site as an app and launch it -- [ ] Importer: build a fake old-Nacre profile from `~/Documents/Apps/Nacre` config format in a temp dir (never the user's real profile) and import it +- [x] Importer: build a fake old-Nacre profile from `~/Documents/Apps/Nacre` config format in a temp dir (never the user's real profile) and import it - [x] R1-20 per-site memory and enforcement: set per-site zoom, ad blocker on/off, privacy-mode flag (flag persistence only; internals are D-011) and other per-site choices; set per-site permissions (camera, mic, location, notifications, pop-ups, autoplay, …); quit, relaunch with `SMOKE_HOME=/home`, check values are in the stores and apply again on reopening the site; check each permission is enforced (blocked/allowed/asked per its stored value), not only stored; fix what is not - [ ] Change a sample of settings via `set` and via clicks; check `settings.json` and the effect; mark FEATURES rows - [ ] PROGRESS entry, INDEX line, commit `S008: …` and push diff --git a/src/selftest.rs b/src/selftest.rs index 93d63a8..af794e4 100644 --- a/src/selftest.rs +++ b/src/selftest.rs @@ -24,6 +24,7 @@ //! cmd [arg] back, forward, reload, bookmark, install_app, pip, exitpip, free_memory, //! update_lists, check_updates, close_tab, select , zoom , //! find , download , pause_download|resume_download|cancel_download [id] (newest), +//! import (bookmarks, history, settings from the n-th found browser profile), //! install_script (a .user.js / .user.css), open_app [id] (default: the first installed app), //! navigate , mute, pin //! js