Commit graph Nacre/tests/smoke/net/server.py
Author SHA1 Message Date
f63ddf8da1 S050 (WIP): WebKit through the bridge over SOCKS5, navigation policy, certificate warning, downloads, cookie policy
- Bridge speaks SOCKS5 on its port; WebKit uses it (plain http through the HTTP proxy lost the login and looped);
  loopback skips the proxy.
- decide-policy: HTTPS-only upgrade with redirect guard, tracking strip, Content-Disposition downloads; Images
  permission as a WebKit content filter (net::policy::images_filter).
- load-failed-with-tls-errors -> Nacre's certificate page (assets/pages/badcert.html), "Open anyway" via
  nacre://allowcert for that tab only.
- download-started: web links to Nacre's downloader, blob:/data: saved by WebKit and tracked in the downloads list.
- Third-party cookies: NoThirdParty + ITP; privacy mode Accept-Language through the extension.
- selftest js/assert/save wait for the page's answer (unanswered asserts used to pass).
- Smokes: net-privacy (+localhost, TLS, images), net-downloads (+<a download>, blob:), privacy-net on https.
Open: main-frame detection for navigations, Google UA quirk, privacy-mode/cache smokes (see plan "Resume").

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 15:27:36 -06:00
72709e07b9 S048: WebKit UI callbacks: pop-ups, dialogs, context menu, permissions, full screen, Web Inspector, PiP
- Pop-ups as related-view tabs; a blocked one's URL opens on "Allow"
- Closing a tab runs beforeunload (try_close, 3 s fallback); HTTP sign-in checked
- egui takes the pointer over the page while a dialog or menu is open; colour picker closes on Escape/outside
- Permission reasons recomputed for WebKit; media stream/WebRTC on; saved notification answers given to WebKit
- Notifications no longer dropped after a non-remembered allow
- F12 opens Web Inspector; nacre://devtools lists tabs and remote inspection (D-046); console/network page removed
- PiP moves the tab's own view into the PiP window and back (no reload)
- Smokes: dialogs, basics extended; pip.txt, auth.txt (server /auth), visible-ui.txt

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 08:03:51 -06:00
9ad7660855 S025: cookies encrypted at rest with a key in the OS keyring (R1-19)
servo-net hands its public cookie jar to Nacre instead of writing plain
cookie_jar.json; store::cookies seals it in cookies.bin (XChaCha20-Poly1305)
with a keyring-held key, saves on change and at exit, migrates the old plain
jar. No keyring: cookies for the run only, Settings says so (D-019).
Smokes with a throwaway GNOME Keyring (SMOKE_KEYRING=1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 19:30:09 -06:00
68346f0edb S024: privacy mode that holds up (R1-16)
Firefox-consistent anti-fingerprinting script (canvas/WebGL/audio/font noise per run and site; common screen,
CPU, platform, touch and WebGL values; frames covered), paused per site, on in incognito. Privacy mode also
switches third-party cookie blocking and a Firefox-style Accept-Language in the vendored servo-net;
document.cookie is emptied in cross-site frames. Engine gaps fixed on the way: screen geometry (was 0x0),
document.fonts.check, a pass-through DynamicsCompressorNode. Settings sub-page and shield flyout explain it.
Tests: unit tests, privacy-mode/incognito/net smokes, Cover Your Tracks run recorded in
docs/engine/privacy-mode.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 17:13:08 -06:00
69b385f1da S023: request headers (DNT, Sec-GPC, Save-Data) and third-party cookie blocking in the vendored servo-net
New vendor/servo-net/nacre.rs holds embedder-set state; http_loader and
websocket_loader read it. Settings rows are working switches; privacy mode
turns blocking on. Loopback smoke tests/smoke/privacy-net.txt, unit tests
for site matching. Patch list in DESIGN.md, D-017.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 15:34:32 -06:00
2263336df9 S007: network smoke tests, local test server, selftest cancel_download, @HOME@ in smoke scripts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 10:26:07 -06:00