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 <[email protected]>
This commit is contained in:
astar76 2026-11-12 09:06:29 -06:00
commit 7f43322ee7

View file

@ -56,6 +56,6 @@ R4-03 [fixed S006] YouTube still does not load (= R1-12, R1-03). Where: https://
R4-04 [open] Address bar has no inline autofill: typing "wikipe" should complete to "wikipedia.org" in the field with the rest selected; Right arrow or Enter accepts it; with no completion Enter goes to what was typed. Today only a dropdown (screenshot 2.png). Where: address bar. Severity: medium.
R4-05 [fixed S006] CRITICAL: websites do not work. DuckDuckGo loads but nothing can be clicked and there is no right-click menu on pages; input to web content seems broken. Where: any web page. Reproduce: open https://duckduckgo.com, click the search box or a link. Severity: critical. → S006 first. Fix: `window_input` used `is_pointer_over_egui`, which is true over the page (it sits in egui's central panel), so clicks and wheel never reached the WebView; now only floating layers (flyouts, menus, toasts) count. Selftest `click`/`rclick`/`pagescroll` now go through `window_input`; `tests/smoke/input.txt` fails on the old code.
R4-06 [open] Nacre's own right-click (context) menu on pages: nice icons, rounded, coloured (Material You). Where: web pages (and links, images, text, fields). Severity: medium.
R4-07 [open] Automated tests for real heavy web use (YouTube, Wikipedia, DuckDuckGo): a smoke run that loads, clicks, scrolls and plays and fails on a broken page. Severity: high. → S006/S007.
R4-07 [fixed S006] Automated tests for real heavy web use (YouTube, Wikipedia, DuckDuckGo): a smoke run that loads, clicks, scrolls and plays and fails on a broken page. Severity: high. → S006/S007. Done: `tests/smoke/heavy-web.txt` (needs internet; selftest `waitfor`, `locate`/`click @`, `pagetype`, `assert`, `expect`). DuckDuckGo and Wikipedia pass (search, results, scroll, links, WebM playback). YouTube home, search and the watch page load, ads are hidden and counted; playback and PiP fail: Servo 0.7 has no MediaSource ("Your browser can't play this video"), and the result list lays out at zero size.
R4-08 [open] A "Settings updated" popup keeps appearing when entering or switching to a tab; the user does not know what it means. Severity: medium. Source not found: no such string in `src/` or `assets/` (case-insensitive greps for "settings updated", "updated", "saved"), and none in `~/.config` (caelestia, niri). Nacre's own toasts all name a concrete action (`Shared::toast` callers in actions.rs). Leads to check when reproducing: (1) a page's Web Notification, shown by `App::on_notification` (src/app.rs) through `notify-send -a Nacre <title> <body>` or, without notify-send, as a toast "title: body"; the text would then come from a site, and a site on the allow list shows it on every visit; check Settings → Permissions → Notifications and which tab it appears on; (2) another app's desktop notification; (3) a nacre:// page script. Next step: reproduce on a throwaway profile and read `nacre.log` / run `dbus-monitor "interface='org.freedesktop.Notifications'"` while switching tabs. Wanted: shown only for something the user changed, and the text says what changed.
R4-09 [open] Discord Rich Presence works with the user's test app ID (set in Settings, not hard-coded: `discord.rs` uses `settings.client_id` / `site_ids`), but the site icon never shows in Discord. Lead: `src/discord.rs` sends `assets.large_image` only when `https_short(image)` holds, so data:/non-https/long favicon URLs are dropped silently; check which favicon URL reaches it and fall back to a known https icon (e.g. the site's /favicon.ico or a favicon service) or the app's uploaded asset. Severity: low. (user) → S009.