Commit graph Nacre/tests
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 <noreply@anthropic.com>
2026-11-13 15:27:36 -06:00
bb1c1a5ed7 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 <noreply@anthropic.com>
2026-11-13 14:33:18 -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 <noreply@anthropic.com>
2026-11-13 08:03:51 -06:00
ffc22e911f S047: page scripts, user style sheets, find and JS on WebKit
User styles become WebKit user style sheets (script fallback for patterns
WebKit can't express), the nacre message handler is registered before the
view exists, find runs on FindController, and the Servo-only shims are gone
from inject.rs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 07:20:17 -06:00
b7d1dbcc2f 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 <noreply@anthropic.com>
2026-11-13 06:14:17 -06:00
4eeb72a25a 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 <noreply@anthropic.com>
2026-11-13 04:18:41 -06:00
bff018bcfc S045 (WIP): hidden harness, repaint/zoom/placement fixes; box 10 YouTube click open
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 03:42:37 -06:00
baa3b7f896 servo-cleanup: Servo removal inventory, drop the WPT MSE runner
docs/engine/servo-removal.md lists every Servo-dependent piece (deps, vendor
crates, src/ hooks with the WebKit replacement each needs, docs, tests/tools)
for the 08 WebKit plans. tools/wpt-mse.sh and tests/wpt-mse/ only tested
Nacre's Servo MSE and nothing else uses them. src/, Cargo.toml and vendor/
are untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 23:41:37 -06:00
cdf16a59eb S028: gst_mse patch 12: coded frames raise the duration to the buffered end (C test)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 22:01:59 -06:00
9d71af3357 S028: fix reopen: no TRACKS_LOCK deadlock on append after endOfStream (C test), spec page cuts at a fragment boundary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:47:34 -06:00
67095081bd S028: merge main (S031 timers patch kept) into s022-mse-proto; progress note
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:24:38 -06:00
71ec603e79 S028 (WIP): MSE attach no longer blocks the script thread; loadedmetadata after the init segment (own byte-stream check), readyState from buffered ranges, byte-stream append errors, buffered throws once removed, failure steps detach the MediaSource, codec table (vp09, Opus/fLaC, vorbis, hevc), mse-player smoke
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 20:41:22 -06:00
0ecfd0f573 S031: root due timers in vendored servo-script (R5-01 SIGSEGV), crash-adblock regression smoke
fire_timer moved due timers into an unrooted Vec; a GC inside one callback swept
the functions of the timers still waiting. Heavy-web reruns and cargo test still pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 20:38:47 -06:00
3d329cafbc Merge branch 'main' into s022-mse-proto
# Conflicts:
#	CLAUDE.md
2026-11-12 19:41:47 -06:00
98bc41c2fa S027: WPT driver ignores the previous test's stale result (results carry their path); run 2: 239/407
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:40:06 -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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
2026-11-12 17:13:08 -06:00
ec251a8209 S027: isTypeSupported registry check, endOfStream error reaches the media element, WPT runner fixes, tools rows, hand-over
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 16:44:13 -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 <noreply@anthropic.com>
2026-11-12 15:34:32 -06:00
23964ea43f S027: MSE DOM to spec (attach/detach, events through tasks, buffered/seekable, removeSourceBuffer, abort, changeType, sequence mode, object URLs per global, weak event sink, pref switch); gst_mse remove, abort, reset and appendWindowStart fixes; spec smoke cases and leak check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 15:15:12 -06:00
3b76b302eb S009: updates, perf and idle-CPU smoke tests; FEATURES, PROGRESS, INDEX
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 14:41:08 -06:00
ee6c3a3899 S009: spell menu finds the misspelled word in text fields (no caretRangeFromPoint in Servo); spell smoke test
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 14:31:10 -06:00
0a86600a55 S009: Discord + media smoke test with a fake IPC server (SMOKE_FAKE_DISCORD)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 14:27:18 -06:00
49ed08cf06 Merge branch 'main' into s022-mse-proto 2026-11-12 14:24:13 -06:00
33b28f089d S026: msesrc waits for an active peer before pushing; split audio/video smoke case; patch write-up
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 11:58:53 -06:00
f1a352765d S008: settings sample smoke, FEATURES rows, PROGRESS, INDEX
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:42:17 -06:00
44f2c4d959 S008: importer smoke on fake Chrome and Firefox profiles
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:39:41 -06:00
f5659642b9 S008: user scripts/styles and site-app smoke
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:37:34 -06:00
8cd424f8df S008: history, bookmarks, downloads smoke with restart
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:35:21 -06:00
b54d1a828e S008: vault smoke (save, autofill, master lock, csv), permission prompt answers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:31:19 -06:00
1a1c386e43 S008: every nacre:// page smoke and blank-shot checker
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:19:54 -06:00
6a092f950d S008: R1-20 per-site memory and permissions enforced (images, sound), restart smoke
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:18:39 -06:00
e3dc9422ca S026: vendored gst_mse 1.28.9 with fixes for early update-end, idle ticks, split A/V init segments; loaded ahead of the system copy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 11:14:43 -06:00
c44bcbd8ee S022: MSE spike findings, sized plan, mse smoke page
Prototype on branch s022-mse-proto (gst_mse backend, vendored script).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:56:24 -06:00
2263336df9 S007: network smoke tests, local test server, selftest cancel_download, @HOME@ in smoke scripts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 10:26:07 -06:00
326dde8a97 S006: keys, cache, site-doctor smokes; single instance check; view source of file://; timed window requests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 09:45:19 -06:00
cb228c6469 S006: dialogs.txt clicks the select and colour fields by selector
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 09:16:45 -06:00
2e3647aa8d S006: R1-13 inline SVG icons take the page's colour
Servo 0.7 paints inline <svg> from its own markup, so currentColor fell back
to black (DuckDuckGo's icons in dark mode). SVG_COLOR_JS copies each SVG's
computed colour into its color attribute; basics.txt checks it. Engine limits
(MSE, mask-image, SVG colour) in DESIGN.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 09:14:57 -06:00
b623926df3 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 <noreply@anthropic.com>
2026-11-12 09:06:29 -06:00
a915040a0a 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 <noreply@anthropic.com>
2026-11-12 08:20:51 -06:00
3f213ccbe1 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 <noreply@anthropic.com>
2026-11-12 08:08:01 -06:00
8049f6aa33 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 <noreply@anthropic.com>
2026-11-12 07:41:24 -06:00
7e6c70128c 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 <noreply@anthropic.com>
2026-11-12 07:28:48 -06:00
773fc7d778 S016: R1-10 cookie spinner in the tab's favicon spot
While a tab loads, a stroke runs along a scalloped cookie outline (draws
forward, retracts, keeps turning), as in the original's draw_spinner. When
the load ends it closes into the whole cookie and shrinks away as the
favicon grows back. Motion off shows a still three-quarter cookie.
chrome.txt shoots two spinner phases and the morph.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 07:16:21 -06:00
f99500fe76 S016: R1-11 internal pages drop the site colour, window restyles when it changes
A nacre:// page typed into a web tab kept the site's theme-color, and style_window
used it, so with the Website source palette and fallback picks didn't show. Tab::site_colour
is None on internal pages; draw() restyles when the active tab's site colour differs from
the one the palette was built from. Regression test + tests/smoke/colours.txt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 07:05:30 -06:00
87299d3d7b 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 <noreply@anthropic.com>
2026-11-12 00:08:32 -06:00
500c4f0ed4 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 <noreply@anthropic.com>
2026-11-11 23:56:31 -06:00
15e2596dee S020: history, bookmarks, downloads, passwords and apps pages in the new design; shared page widgets (header, search pill, empty state, list item)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 23:33:59 -06:00
7efd263b6e 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 <noreply@anthropic.com>
2026-11-11 23:21:48 -06:00
0ed5b34404 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 <noreply@anthropic.com>
2026-11-11 22:49:28 -06:00