From b623926df3ca2ec4cf3b524872e416c4f7314318 Mon Sep 17 00:00:00 2001 From: astar76 Date: Thu, 12 Nov 2026 09:06:29 -0600 Subject: [PATCH] S006: mainstream user agent, heavy-web smoke on real sites Default UA is Servo's in Firefox's exact form (Gecko/20100101, no Servo token), following Servo's version (inject::mainstream_ua, tested); a custom UA still wins. tests/smoke/heavy-web.txt (needs internet): DuckDuckGo, Wikipedia, YouTube in one go (home, search, video, ads, PiP). Selftest waitfor, locate + click @, expect > n. input.txt checks Enter submits a form and the keys a page sees. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 +- Plans/02 Verify/S006-verify-basics.md | 4 +- docs/review/phase4.md | 2 +- src/actions.rs | 2 +- src/app.rs | 4 +- src/inject.rs | 15 ++++ src/selftest.rs | 55 +++++++++++-- tests/smoke/heavy-web.txt | 111 ++++++++++++++++++++++++++ tests/smoke/input.txt | 12 ++- tests/smoke/pages/input.html | 4 +- 10 files changed, 195 insertions(+), 16 deletions(-) create mode 100644 tests/smoke/heavy-web.txt diff --git a/CLAUDE.md b/CLAUDE.md index a6576f0..1b864b5 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -65,7 +65,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