Commit graph Nacre/src/selftest.rs
Author SHA1 Message Date
6e951701f1 S057: site colour from the favicon
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-14 07:21:33 -06:00
3f212e2343 S057: quit and window close run beforeunload through the Leave dialog
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-14 07:16:15 -06:00
3795770bb0 S056: PiP return regression smoke, selftest pick, menus grow without overshoot (motion review)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 21:15:22 -06:00
673a116235 S056 (WIP): real PiP (video only, floating, own app id), Material PiP controls, side buttons, middle/Ctrl-click links in a new tab, spell underline position
Resume: freeze not reproduced yet (hidden + visible); context menu works on a test page,
YouTube case waits for the orchestrator's answer; bindings audit list, final smokes, PROGRESS.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 20:41:39 -06:00
1db7d61b66 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
3a7f6db2a6 S049 (WIP): ad blocker in WebKit content filters, web process extension for headers, stand-ins and blocked counts
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 14:33:18 -06:00
f2f096cc39 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
ebbd445127 S046: smoke harness in a hidden nested niri, real selftest input, local media in the sandbox
- tools/nested-session.sh (Xvfb -> nested niri, own display/runtime dir, xresize for SMOKE_SIZE); smoke.sh and
  hidden.sh run in it; wl-input moved to tools/wl-input (own crate)
- selftest: click/rclick/pagescroll via wl-input, pagetype via wtype, resize via the nested niri
- WebKit sandbox: XDG user dirs (+ test pages in scripted runs) read-only so file:// media plays (D-043)
- SMOKE_VISIBLE needs the user's niri window rule, never moves focus (D-044)
- launch, basics, input, keys, chrome green hidden

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 06:14:17 -06:00
0656eeb438 S045: YouTube plays after a real click in the hidden run; address field lets go when a page takes focus
The hidden click landed on <html> because YouTube keeps its main thread busy ~7 s after
load and swaps its skeleton for the player meanwhile; web.txt now clicks once the point
hits #movie_player. focus_page drops egui's text focus and attaches the view first; new
foreground web tabs, tab switches and new views use it. Selftest status gets ui_typing
and page_focused.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 04:18:41 -06:00
b1205373a5 S045: GTK4 host with WebKitGTK views, egui overlay, engine module; Servo and winit removed
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 02:39:02 -06:00
a5982a7c1b 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
d2cc780684 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
34ec2ded6e S009: updates, perf and idle-CPU smoke tests; FEATURES, PROGRESS, INDEX
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-12 14:41:08 -06:00
da5a73768a S008: importer smoke on fake Chrome and Firefox profiles
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-12 11:39:41 -06:00
f9d0f0d338 S008: user scripts/styles and site-app smoke
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-12 11:37:34 -06:00
347d32b2fc S008: history, bookmarks, downloads smoke with restart
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-12 11:35:21 -06:00
dd31cc8971 S008: vault smoke (save, autofill, master lock, csv), permission prompt answers
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-12 11:31:19 -06:00
38b0fea432 S008: R1-20 per-site memory and permissions enforced (images, sound), restart smoke
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-12 11:18:39 -06:00
5389719c98 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
6031f9f03c S006: keys, cache, site-doctor smokes; single instance check; view source of file://; timed window requests
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 09:45:19 -06:00
7f43322ee7 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]>
2026-11-12 09:06:29 -06:00
b3bfdb6b28 S006: YouTube loads (HTTP/2 header limit), basics smoke, Escape leaves page full screen
servo-net 0.7.0 keeps hyper's 16 KiB HTTP/2 header list limit; YouTube sends
~19 KiB, so the stream was reset and Servo showed SendRequest. vendor/servo-net
raises it to 256 KiB (D-012).
Escape went to the page only in full screen (inverted check): keys::page_gets_key.
tests/smoke/basics.txt: tabs, navigation, address bar, find, zoom, full screen,
_blank, pop-up, new window. Selftest expect/locate, pagetype {escape}.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 08:20:51 -06:00
743a4f0b18 S006: R4-05 clicks, keys and wheel reach web pages again
window_input asked egui's is_pointer_over_egui, which is true over the page
because it sits in the central panel; only floating layers count now.
Selftest click/rclick/pagescroll go through window_input, pagetype types into
the page, assert fails the smoke run; tests/smoke/input.txt fails on the old code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 08:08:01 -06:00
f2dd1cc35c S016: R1-21 controls hold still under the pointer
segmented keys its animation state on its widget id instead of its screen
position (the recording showed wrong checks while scrolling); Interface size
uses a new settled_slider that shows a value label while dragged and sets the
value on release; filter_chip keeps one width; zoom resets at 100 %.
Selftest press/drag/release and scroll; smoke scripts sliders(-visible).txt.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 07:41:24 -06:00
11713adaf3 S016: R1-15/17/18 one protection flyout, QR sized to content, flyout polish
The shield flyout holds the ad blocker, privacy mode and the VPN as separate
groups; the VPN toolbar button only shows its state and opens it. Flyout
action rows no longer wrap, which stretched the QR flyout to the window's
bottom. Panel flyouts get the original's look: title with icon actions,
accent group labels, two-line entries and designed empty states.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 07:28:48 -06:00
702cee1958 S016: R1-09 wavy loading address bar
While the active tab loads, the address pill squeezes into a wavy progress
bar mapping an estimate of the load (Servo reports only stages); hover,
focus or typing springs it back to the field. selftest gets fakeload,
hover and blur for the loading and hover shots in tests/smoke/chrome.txt.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 00:08:32 -06:00
6b6c546a54 S020: welcome flow, task manager, about, clear data, site settings, source, devtools, error pages, dialogs, bars; row layout fix; PROGRESS, INDEX
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-11 23:56:31 -06:00
c0bfe16595 S019: settings pages redesign: navigation rail with sliding pill and search, cards of rows that stack when narrow, search through every row, colour section with live scheme preview and scheme swatches, limit and unavailable rows, shared chips/slider/stepper, selftest tap
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 23:21:48 -06:00
8284541e83 S018: new tab backgrounds (shapes, blobs, constellation, waves, dot grid) reacting to the cursor, image/GIF layer, Customize panel, heavier clock, delayed repaints honoured
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 22:49:28 -06:00
72d06510b2 S016: chrome and menus redesign: pill tabs on springs, address pill, toolbar badges, page card, floating flyouts
Tabs slide to their slots with a sliding selection pill and drag under the
pointer; the address field is a pill with a site chip, host emphasis and a
star that fills; flyouts and menus share one floating surface that springs
open and fades closed. Web page corners are masked over the GL blit.
tests/smoke/chrome.txt shoots the chrome and every flyout dark and light.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 20:11:33 -06:00
802a745e78 S005: painter smoke tests; fix chrome blanking after PiP closes
- tests/smoke/painters.txt (5 tabs, switch, resize, PiP, close) and painters-perf.txt (memory, frame
  time, threads with 1/5/15 tabs, idle discard); test pages color.html, video.html, clip.webm.
- selftest: `resize <w> <h>`, `shot <name> pip`, status gets frames (median/max ms), painters, threads.
- Fix: a closing window's egui was destroyed with another window's GL context current, deleting the
  main window's font texture (chrome text/icons blank after PiP). BrowserWindow::destroy() makes its
  own context current first.
- Fix: PiP CSS resets the video's margin (video was shifted down in the PiP frame).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 18:34:37 -06:00
95219c51c4 S001: commit self-test WIP and UI brief
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 17:22:27 -06:00