S050: network on WebKit done; smokes rerun with answered asserts (input click wait, auth size)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-13 19:54:40 -06:00
commit ab158f512e

View file

@ -401,7 +401,18 @@ Later: S010 list: user checks the Discord icon with their own client (the Discor
- Not done: images permission still not enforced on WebKit (could be one more small filter); privacy-net end criterion (S050); no visible run.
- Later: uBO resources (google-ima.js etc.) as stand-ins; `@@` exceptions don't stop extension redirects; `$removeparam` rules.
## S050 — Network on WebKit: bridge, HTTPS-only, certificates, error pages, privacy switches, downloads, cache (2026-11-13)
- Done: WebKit reaches the bridge over SOCKS5 (`Bridge::socks_url`; libsoup's HTTP proxy path dropped the login and GETs the bridge itself), loopback skips it; `decide-policy` → `actions::on_navigation` (HTTPS-only, strip, app scope, external apps, downloads by MIME/Content-Disposition); certificate warning + allow per host; Nacre error pages; downloads through `net::download`/manager hand-off; third-party cookies = NoThirdParty + ITP; Accept-Language; `policy::decide` incl. the images permission.
- Google UA quirk: WebKit's own site-specific quirks put a Safari UA on Google's requests over a view's set UA; the per-view settings copy turns them off.
- Frames: the GTK API has no frame info, so a frame's navigation took over the tab (HTTPS-only/strip/UA reload). Now only the tab's own loads reach the browser: Nacre's loads (no headers), redirects while the main load is provisional, others unless a frame element has that URL (async page check). Gap: links followed inside a frame.
- D-040 amended: cache model DocumentBrowser (DocumentViewer has no HTTP disk cache); 4-tab hidden PSS median viewer 1147 MB vs browser 1128 MB.
- selftest `js`/`assert`/`save` wait for the page's answer (before, a run could pass with asserts unanswered).
- Verified hidden (every assert answered): net-privacy (+ frame/script-navigation checks), net-downloads, privacy-net, privacy-mode (WebKit values), cache + cache-restart; reruns of launch, basics, input, keys, chrome, dialogs, pip, auth, net-adblock, crash-adblock, stores-* (+ checks), integ-spell all exit 0 without `NACRE_NO_BRIDGE`. `cargo test` 78 + webext 1.
- Rerun fixes: input.txt first click waits (arrives >0.5 s hidden); auth.txt needs `SMOKE_SIZE=1280x900` (header now says so).
- Not done: `blob:` downloads don't ask where to save and can't pause; no visible run; net-real.txt (internet) not run.
## Later
- A link followed inside a frame still goes through the tab's navigation policy (WebKit's GTK API has no frame info; S050).
- file:// media outside the XDG user folders doesn't play (WebKit sandbox, D-043).
- 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).