S007: FEATURES rows, PROGRESS, INDEX

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-12 10:26:07 -06:00
commit c45c425703
4 changed files with 40 additions and 12 deletions

View file

@ -12,13 +12,13 @@ Verify the networking features: bridge proxy (secure DNS, VPN routing) on loopba
- `src/net/bridge.rs`, `src/net/dns.rs`, `src/net/download.rs` as needed
## Steps
- [ ] Start a local HTTP(S) test server (Python `http.server` on loopback, self-signed cert for HTTPS) serving test pages, an ad/tracker URL list and downloadable files
- [ ] Check HTTPS-only upgrade and the `location.replace()` redirect page; check tracking parameter stripping
- [ ] Check the ad blocker blocks listed requests and cosmetic filters on the local page; check list update works offline-safe (local list file)
- [ ] Check downloads: start, pause/resume, cancel, save-to folder, external download manager hand-off with a dummy command
- [ ] Check the bridge with secure DNS pointed at a local stub (no public resolver in tests) and VPN routing disabled; never start Tor
- [ ] Mark FEATURES rows verified/broken; fix failures in place with regression tests
- [ ] PROGRESS entry, INDEX line, commit `S007: …` and push
- [x] Start a local HTTP(S) test server (Python `http.server` on loopback, self-signed cert for HTTPS) serving test pages, an ad/tracker URL list and downloadable files
- [x] Check HTTPS-only upgrade and the `location.replace()` redirect page; check tracking parameter stripping
- [x] Check the ad blocker blocks listed requests and cosmetic filters on the local page; check list update works offline-safe (local list file)
- [x] Check downloads: start, pause/resume, cancel, save-to folder, external download manager hand-off with a dummy command
- [x] Check the bridge with secure DNS pointed at a local stub (no public resolver in tests) and VPN routing disabled; never start Tor
- [x] Mark FEATURES rows verified/broken; fix failures in place with regression tests
- [x] PROGRESS entry, INDEX line, commit `S007: …` and push
## End criteria
- `tools/smoke.sh tests/smoke/net*.txt` pass.

View file

@ -13,7 +13,7 @@ Tracker: https://claude.ai/artifact/9AD7fPfwJ4ASFzVTJGKU4h
## 02 Verify
- [x] [S005 — Per-tab painters on one GL context](02%20Verify/S005-gl-painters.md) · Opus high
- [x] [S006 — Browser basics pass](02%20Verify/S006-verify-basics.md) · Opus medium
- [ ] [S007 — Network pass](02%20Verify/S007-verify-network.md) · Opus medium
- [x] [S007 — Network pass](02%20Verify/S007-verify-network.md) · Opus medium
- [ ] [S008 — Stores and pages pass](02%20Verify/S008-verify-stores.md) · Sonnet high
- [ ] [S009 — Integrations pass](02%20Verify/S009-verify-integrations.md) · Sonnet high
- [ ] [S010 — Phase 2 review with the user](02%20Verify/S010-phase2-review.md) · Sonnet medium · 🧑

View file

@ -71,14 +71,14 @@ written.
## Privacy
| Setting | State |
|---|---|
| VPN: Tor (system, Tor Browser, or started) or custom SOCKS5/HTTP, kill switch while connecting | written (`net/bridge.rs`, `net/tor.rs`) |
| VPN: Tor (system, Tor Browser, or started) or custom SOCKS5/HTTP, kill switch while connecting | written (`net/bridge.rs`, `net/tor.rs`); S007 verified the bridge with the VPN off (net-privacy.txt: route Direct, every connection through it, traffic counted live); Tor and proxies never run in tests (user rule), kill switch not checked |
| Privacy mode (+ in incognito) | written (PRIVACY_JS) |
| Secure DNS (Cloudflare, Quad9, Google, Mullvad, AdGuard, custom) | written (`net/dns.rs`) |
| HTTPS-only mode with fallback prompt and exceptions | written |
| Secure DNS (Cloudflare, Quad9, Google, Mullvad, AdGuard, custom) | verified S007 with a custom endpoint on a local stub (net-privacy.txt: names only the stub knows load); the public providers not contacted in tests |
| HTTPS-only mode with fallback prompt and exceptions | verified S007 (net-privacy.txt: upgrade via the `location.replace()` page, certificate warning "Open anyway" (fixed: servo-net patch), fallback prompt + Open anyway, site stays http this session, local addresses never upgraded); "Always for this site" not tapped |
| Site settings (defaults and per-site) | written |
| Delete browsing data (+ on exit) | written |
| Send Do Not Track and GPC | partial: JS only (no headers in Servo 0.7) |
| Remove tracking parameters | written |
| Remove tracking parameters | verified S007 (net-privacy.txt: utm_*/fbclid removed, other parameters kept, off keeps all) |
| Block third-party cookies | engine limit, shown as unavailable |
| Google sign-in quirk | written (UA switch + JS) |
| Sites where ad blocking is paused | written |
@ -88,11 +88,21 @@ written.
Block ads and trackers, filter engine status + update now, 22 filter lists in groups, your lists, own rules, hide
leftovers (cosmetic incl. generic hiding), animate removal, block YouTube ads, update automatically: written
(`adblock.rs`, `hub.rs`, COSMETIC_JS). Seed lists ship in `assets/filters`.
Verified S007 (net-adblock.txt, offline): seed lists build without network (210k rules); a custom list URL
(local) blocks a script and an image and hides elements by a site and a generic cosmetic rule; pausing for a site
lets everything through; a list that can't be downloaded is reported and the rules stay; per-page blocked count
(fixed: it was reset after the page's first requests were counted). Not checked: the 22 real lists' downloads,
YouTube ad blocking, own rules, removal animation, automatic updates.
## Downloads
Save to, ask where, show when they start, pause/resume (Range), retry, cancel, open/show in folder, external download
managers (AB Download Manager, aria2/Motrix, JDownloader 2, FDM, IDM) with ping status and fallback: written
(`net/download.rs`, `net/dlm.rs`). Downloads are detected by URL type, a header probe, and `<a download>`.
Verified S007 (net-downloads.txt, offline): by file type and by Content-Disposition from links and typed addresses
(fixed: typed addresses skipped detection), save-to folder, pause/resume with Range (file intact), cancel, size of
small files (fixed: showed 0 B), aria2/ABDM/JDownloader stubs and a dummy FDM get the link, fallback to Nacre's
downloader when the manager is down. Not checked: ask where (file dialog), retry, open/show in folder, `<a download>`,
IDM (Windows), a file at an address with no hint (no extension, no "download"-like path), which isn't probed.
## Media
Media button (when playing/always/never), player flyout (art, seek, controls, mute tab/site, PiP), visualizer

View file

@ -243,6 +243,20 @@ One entry per session, newest last, ≤ 15 lines: done, verified how, not done,
GitHub repo, README, file view OK. YouTube: loads, no playback (no MediaSource, engine limit). HTTP cache OK.
- Not done: Google sign-in past the email step; a real (non-test-key) Turnstile challenge.
## S007 — Network pass (2026-11-12)
- New (offline, `python3 tests/smoke/net/server.py &` first): `net-privacy.txt` (secure DNS on a local stub, bridge with
VPN off, HTTPS-only upgrade/warning/fallback, tracking params), `net-adblock.txt`, `net-downloads.txt` (+ dlm stubs,
`net/fake-fdm.sh`); `cache-restart.txt` (disk cache across a restart); `net-real.txt` (internet, Wikipedia caching).
- Fixed: certificate warning "Open anyway" did nothing and the HTTP disk cache was empty after quit (servo-net, D-014);
typed download addresses opened in the tab; per-page blocked count reset late (lost counts); small finished
downloads showed 0 B; bridge counted a tunnel's bytes only at close; "1 lists". Bridge test checks live counting.
- Green: net-privacy, net-adblock, net-downloads, cache + cache-restart, launch, input, basics, keys, dialogs,
restore (hidden Xvfb); 60 unit tests. net-real: Wikipedia article 887 KB fresh, 20 KB after a restart (disk cache).
- R1-04: caching works (memory + disk, local and real site). Captchas: widgets draw (S006); solving one is for the
user to try (an agent must not complete captchas). Turnstile black half-disc stays in Later.
- Not done: Tor/proxy routing and kill switch (never in tests), real filter list downloads, YouTube ad blocking,
ask-where dialog, retry, `<a download>`, IDM, "Always for this site".
## Later
- Turnstile widget paints as a black half-disc (Servo painting of its iframe/shadow DOM, S006 site doctor).
- Google sign-in past the email step: press Next with a real account, by the user (S006).
@ -254,3 +268,7 @@ One entry per session, newest last, ≤ 15 lines: done, verified how, not done,
- Packaging and first release (D-001: plan when the user asks).
- Shortcut icons: a favicon cache by host (today only open tabs' favicons show).
- Interface size above ~110 % on a narrow (772 px) window clips wide segmented rows at the right (R1-21 visible run).
- A test run (fresh profile, internet) moves ~200 KB before the first page and looks up the update host
(archlinux.tail7c4f5e.ts.net); find out which background fetch it is, maybe skip it in smoke runs (S007).
- Downloads at addresses that give no hint (no extension, no "download"-like path) aren't probed, so they aren't
treated as downloads (what Servo then shows wasn't checked) (S007).