From f9d0f0d3382e2d7adc9a7799c8dc204660a9162e Mon Sep 17 00:00:00 2001 From: astar76 Date: Thu, 12 Nov 2026 11:37:34 -0600 Subject: [PATCH] S008: user scripts/styles and site-app smoke Co-Authored-By: Claude Sonnet 5.5 --- Plans/02 Verify/S008-verify-stores.md | 2 +- src/selftest.rs | 4 +++ tests/smoke/pages/probe.user.css | 5 ++++ tests/smoke/pages/probe.user.js | 8 ++++++ tests/smoke/stores-apps.txt | 41 +++++++++++++++++++++++++++ 5 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 tests/smoke/pages/probe.user.css create mode 100644 tests/smoke/pages/probe.user.js create mode 100644 tests/smoke/stores-apps.txt diff --git a/Plans/02 Verify/S008-verify-stores.md b/Plans/02 Verify/S008-verify-stores.md index 6b6852d..f7bd284 100644 --- a/Plans/02 Verify/S008-verify-stores.md +++ b/Plans/02 Verify/S008-verify-stores.md @@ -15,7 +15,7 @@ Verify passwords/vault and autofill, permissions prompts, history/bookmarks/down - [x] Vault: create, lock/unlock, save a login from a local form page, autofill it, export/import; check the vault file is encrypted - [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 -- [ ] User scripts/styles apply on matching pages; install a site as an app and launch it +- [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] 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 diff --git a/src/selftest.rs b/src/selftest.rs index e42de02..93d63a8 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), +//! install_script (a .user.js / .user.css), open_app [id] (default: the first installed app), //! navigate , mute, pin //! js