73 KiB
Progress
One entry per session, newest last, ≤ 15 lines: done, verified how, not done, later.
S001 — Compile to a binary (2026-11-11)
- Done: self-test WIP and UI brief committed; first build had 5 errors (missing
Readimport in instance.rs, missingSpellerimport in actions.rs, borrow errors in app.rs:796, store/scripts.rs:124, ui/pages/settings.rs:947), fixed in place; removed a no-opdrop(&mut)in app.rs. No feature degraded. - Verified:
nice cargo build --release -j 2exit 0;target/release/nacre(144 MB)--help/--versionexit 0 headless;lddresolves everything. nacre crate alone rebuilds in ~1 min (Servo was already built). - Not done: unit tests, launching a window (later plans).
- 66 warnings remain: egui 0.37 deprecations (
Ui::id,Id::new) and dead code. Dead code that hints at unwired features:History::autocomplete/top_sites(omnibox inline completion, new-tab top sites?),keys::conflicts(shortcut conflict check),Command::SpellReplace(duplicate ofMenuAction::SpellReplace),tabs::Page::Error,Prompt::Info. Worth a look in the gaps phase.
S002 — Unit tests green (2026-11-11)
- Done:
nice cargo test --release -j 2compiles with no test-only errors; 29 tests pass, run 0.1 s (build ~16 s). Green twice in a row. No code or test changes were needed: no bugs found. - Verified: grep of test modules: only temp dirs (adblock, vault), loopback TcpStream (bridge),
/nonexistentpaths (history); URLs in tests are string constants. No test touches~/.config/nacre*, Tor or proxies. - Not done: coverage is thin (29 tests across 16 modules; no tests for e.g. downloads dlm, session, apps).
S003 — First launch and smoke harness (2026-11-11)
- Done: hidden display = Xvfb + llvmpipe (D-005).
tools/smoke.sh+tests/smoke/{launch,https,restore}.txt(CLAUDE.md §5). Launch renders nacre://newtab (egui) and a local file:// page (Servo); example.org loads through the bridge (route Direct, ~205 KB); second launch restores the session; user profile untouched. - Fixed: (1) every egui glyph panicked in vello_cpu ("rasterize before flushing"): servo-canvas turns on
vello_cpu/multithreading for epaint too. Vendored epaint 0.37.0 in
vendor/epaint([patch.crates-io]), glyphs render single-threaded (D-006); regression testtheme::tests::egui_draws_text(fails without it). (2) segfault on quit: Hub<->Servo Rc cycle kept Servo alive;App::quitnow drops every Servo handle before the windows' GL contexts (src/app.rs). - Verified:
tools/smoke.sh tests/smoke/launch.txtexit 0 ×5, 2 non-blank PNGs, 0panicked; 30 tests green. - Not done: exit fix not A/B-checked by reverting (crash seen once before the fix, 5 clean runs after).
- Later: toolbar/tab icons draw as tofu boxes (icon font glyphs missing); new-tab clock text nearly invisible on the light theme; tile letters ("Y", "G") above names look like missing favicons.
S004 — Phase 1 review (2026-11-11)
- Done: build current;
docs/review/phase1.mdwritten; user's feedback recorded as R1-01..R1-06 (6 open, 0 fixed). - Most severe: R1-01 icon glyphs missing (tofu boxes), R1-03 YouTube fails to load (not investigated; S006).
- Not done: no fixes (none trivial); the user's session tried only a short run.
- Later: R1-05/R1-06 feed the Phase 4 redesign (look of old Python Nacre, animations).
S005 — Painters (2026-11-11)
- Done: D-008 one painter per window (
window.rspage_context/painted_tab/paint_unshown); PiP = second web view with its own painter that reloads the page and seeks (Tab::pip,actions.rsenter/exit_pip, PIP_JS take/start/state/resume). Fixed: egui destroy in the wrong GL context (chrome blank after PiP); PiP video frozen (Servo 0.7 freezes a playing video seeked then play()ed:pip.startpauses first). - Measured (llvmpipe, 15 tabs): per-tab painters 1128 MB / 141 threads vs shared 349 MB / 71 threads; ~56 MB per painter; frame median ~13 ms either way. glibc keeps freed memory after discard.
- Verified: painters.txt, launch.txt, painters-perf.txt exit 0; 30 unit tests green. Shots checked by eye (target/smoke/painters-final): s1-s6 tabs, r1-r3 resize, p1 placeholder, p2/p4 PiP playing (1.33 s -> 3.40 s), p3 tab 1, p5 tab 5 resumed, c1-c3 closes.
- Not done: real-GPU check (S010). PiP loses page state (in DESIGN engine limits). Split view now impossible.
- Later: status field
painterscounts web views, not painters; rename. malloc_trim after discard.
S015 — Material You foundation (2026-11-11)
- Done:
theme.rsM3 schemes frommaterial-colors =0.4.2(D-009) with all roles + old aliases;theme::applystores tokens (palette, roundness, motion) in the egui context; shape/space/type tokens; springs (FAST/DEFAULT/SLOW/EFFECT, Motion setting scales or disables). Outfit variable font (5 weights) + Material Symbols subset (tools/icons.py, 139 icons, 55 KB).widgets.rsrestyled (buttons, icon buttons, switch, segmented, card, rows),ui/paint.rs(cookie, wavy line/progress, shadow), hiddennacre://gallery+tests/smoke/gallery.txt. DESIGN.md § UI system. - Fixed: R1-01 (every emoji/Unicode glyph in src/ui now an icon constant); R1-02 (strong text used on_primary = white in light theme; clock now Thin Outfit in primary).
- Verified: 38 unit tests (reference colours #555992/#BEC2FF/#65558F/#CFBDFE, contrast ≥ 4.5 for 12 presets light and dark, widget click/Tab+Space/hover-settle); gallery.txt and launch.txt exit 0, shots checked by eye.
- Not done: focus ring and pressed states not seen in screenshots (tests only); no real-GPU check; no CJK font.
- Later: chrome toolbar glyphs still drawn at text size via egui Buttons (S016);
egui::Ui::id/Id::newdeprecation warnings across src/ui.
S016 — Chrome and menus redesign (2026-11-11)
- Done: chrome.rs rewritten: pill tabs on springs (selection pill slides, drag under the pointer, others make room),
round +, 52 pt toolbar of icon buttons with badges/progress ring/VPN dot, address pill (site chip, "Not secure",
host emphasis, zoom/install chips, star that fills), suggestions as a floating menu, bookmarks bar chips + empty
hint, page as a rounded card (corners masked over the GL blit). menus.rs:
floating(spring open/close),menu_item; every flyout and the page menu restyled (wavy download/seek bars, cookie artwork with dot visualizer, morphing play). Measurements: DESIGN.md "Chrome". Main menu: Save page/PDF/QR/Install/Shortcut moved into "Save and share". - Shots:
tools/smoke.sh tests/smoke/chrome.txt(target/smoke/s016f-chrome): chrome-dark/light, main(-opening)-dark, main-light, downloads, shield, vpn, siteinfo, qr, tabmenu (dark+light), media(-playing), profiles, apps, back, bookmark, suggest-dark, narrow-light. selftest:flyout tabmenu|back|bookmark,type <text>. - Verified: chrome, launch, restore, painters, gallery smoke exit 0; 40 unit tests (+drag_layout, address_job).
- Not done/seen: S006 basics scripts don't exist yet (ran the four above instead); page right-click menu, hover, press and a live tab drag not in screenshots (no pointer in selftest for chrome); no real-GPU check.
- egui limits hit: Area capped at 600×400 unless
default_size; Xvfb never focuses the window, so text focus drops (selftesttypesends Focused(true)); stale TextEdit selection shows after focus leaves (cleared by hand).
S017 — New tab page elements (2026-11-11)
- Done: newtab.rs rebuilt: greeting, Thin clock in fixed digit cells + AM on its baseline + long date, shortcut
circles + dashed Add (right-click open/remove), Now playing card (shared
menus::media_art/seek_bar/play_button/ media_title; radial visualizer bars hug the scallops, cookie turns once a minute; shuffle via the page's own button, repeat = loop; source chip), Weather card (Open-Meteo feels-like, high/low, rain %, humidity, wind, place; empty/loading/failed states), search pill, Notes / Reading list / Top sites cards on a 3/2/1-column grid. Defaults: video order, all on, seconds on. - Handoff for S018: elements are
ntp.elementskeys greeting, clock, shortcuts, media, weather, search, notes, reading, recent (= "Top sites");blocks()packs consecutive cards into rows, so reorder/toggle is just that list. Background code untouched (image texture nowf.ui.ntp_bg_texture). User feedback on Shapes in the notes folder. - Shots (
SMOKE_SIZE=1400x1200 tools/smoke.sh tests/smoke/newtab.txt, target/smoke/s017-e): ntp-dark/light, ntp-playing-dark/light, ntp-tall-dark/light, ntp-weather-error-dark, ntp-shapes-dark, ntp-narrow-dark, ntp-phone-dark; target/smoke/s017-w weather-dark/light (real data). Checked against the video frames. - Verified: 44 unit tests (+blocks, clock_text, weather parse, long date); newtab, launch, chrome smoke exit 0.
- Not done/seen: hover/press on shortcuts and cards, the stacked phone media card below the fold (no scroll command), shuffle against a real player (YouTube Music, Spotify), real-GPU check.
S018 — New tab backgrounds and Customize (2026-11-11)
- Done:
ui/pages/backdrop.rs(image/GIF with Dim/Blur; Shapes with every kind the user listed, Blobs, Constellation with lines, Waves, Dot grid; all react to the cursor; Amount/Speed/Motion scale, still freezes) andcustomize.rs(panel sliding in from the right: background chips, Amount, Speed, cursor, Upload/Change/Remove, Dim/Blur sliders, element order + switches, 24-hour, seconds, name, Weather place with Open-Meteo suggestions, units). General no longer links the NTP sub-page; redraws honour egui's delay (D-010). Clock SemiBold, soft colons, AM/PM on top (user). - Shots (target/smoke/s018-c, visible, ~772 pt wide): bg-none, bg-shapes(-lots/-light), bg-blobs, bg-constellation (-lots), bg-waves, bg-dots(-lots/-nopointer), panel-dark/light, image-dark, image-blur, gif-a/b (frames differ), gif-dots.
- Lots/Fast median/max draw ms, fps: Shapes 1.38/13.8, 60; Blobs 1.31/7.7, 59; Constellation 1.29/2.3, 60; Waves 1.38/2.0, 60; Dot grid 1.41/2.1, 60. CPU ~10 % of a core animating, 0-1 % idle; None/hidden tab/Motion off 2-3 fps.
- Verified: 50 unit tests; backgrounds, newtab, chrome smoke exit 0.
- Not seen: place suggestions (network + typing; parse tested only), Upload dialog, slider drag, Escape; pointer shots partly follow the user's real mouse in visible runs. Shortcut editing still lives in the old sub-page.
S019 — Settings pages redesign (2026-11-12)
- Done: settings.rs rewritten: navigation rail with icons, sliding selected pill and search pill (icon rail under
760 pt); every section and sub-page as titled cards of rows; search covers every row (unseen pass), highlights
matches, empty state,
?search=link. Appearance: live scheme preview, preset swatches as schemes, custom colour picker + hex, style chips, contrast slider snapping to M3 levels. Limits: Freeze tabs, Save data, DNT = limited rows; third-party cookies, Widevine = "Not available". New tab sub-page = Customize link + shortcut editor. - Widgets (reusable): icon_row, icon_link_row, wide_row, limited_row, unavailable_row, highlight_rows, chip,
choice_chips, toggle_chips, input_chip, slider, stepper
number(DESIGN.md "Widgets", "Settings"). Selftesttap. - Shots: target/smoke/s019-v (visible, compact rail) and s019-w (hidden 1280×1100, wide rail):
-dark/light for general appearance toolbar performance privacy adblock passwords downloads media about profiles search spell keys import newtab permissions lists managers discord, search(-empty)-dark/light, narrow-dark/light. - Verified: 51 unit tests (+stepper); settings.txt exit 0 visible and hidden; settings-write.txt (fresh home) wrote startup Restore, privacy mode on, lock after 30, palette fallback #006A6A. S008's stores script doesn't exist yet.
- Not seen: page scrolled below the fold (no scroll command), hover/press in shots, colour picker popup, key capture; backgrounds/chrome smoke not rerun after moving chip/slider out of customize.rs (same code, it compiles).
S020 — Other pages and dialogs redesign (2026-11-12)
- Done: history, bookmarks (+ reading list), downloads, passwords (logins, addresses, cards, generator, check, master password, lock screen), apps (+ scripts and styles), devtools, task manager, about, clear data, site settings, source and the web error pages (neterror, badcert, crash HTML, dark and light) in the S015/S019 system, each with designed empty, no-match and error states. Welcome is the six-step setup flow (R1-08). All dialogs: alert/confirm/prompt, sign-in, select, colour, Bluetooth, leave page, autofill dropdowns, permission and find bars.
- Widgets added (DESIGN.md "Pages and dialogs"): page_header, search_pill, empty_state, status_state, list_item,
more_menu, password_field, strength_meter. Fixed
rowstarting stacked in narrow containers. Added icons diamond, fingerprint, rocket_launch, lightbulb. Selftestkey,welcome. - Shots (target-independent, run with SMOKE_VISIBLE=1):
tests/smoke/pages-ui.txt(history, bookmarks, downloads, passwords, apps, site settings, clear data, about, tasks, devtools, source, welcome 1-6, light variants) andtests/smoke/dialogs.txt(alert, confirm, prompt, select, colour, find bar, light alert). - Verified: 51 unit tests; launch, settings, chrome, pages-ui, dialogs smoke exit 0.
- Not seen: populated downloads and apps lists, password/address/card editors and lists (vault is empty in smoke), the select dropdown and permission/sign-in/leave-page dialogs (no script trigger), the HTML error pages after the change (only the old one), welcome Import with a detected browser, hover/press states, tiny windows. "Make Nacre your default browser" is not in the done step (no code for it yet).
S016 follow-up — R1-09 wavy loading address bar (2026-11-12)
- Done: while the active tab loads, the address pill squeezes (DEFAULT spring) into a 4 pt track and becomes
paint::wavy_progress; the pointer over it, focus or typing morphs it back; after the load it fills to the end, then the field returns. Motion off = instant. Servo 0.7 gives only stages, sochrome::load_estimateeases to 0.6 (Started) / 0.92 (HeadParsed) over time; test added. selftest:fakeload <s>|done,hover <x> <y>|none,blur. - Verified: chrome.txt (loading-dark, loading-morph-dark, loading-hover-dark, loading-again-dark, loaded-dark, loading-light) and launch.txt exit 0 on Xvfb and with SMOKE_VISIBLE=1 (real GPU, 772 px wide tiled window); 52 unit tests. Not seen: a real slow network load (local pages finish too fast; fakeload holds the stage).
S016 follow-up — R1-11 colours after welcome (2026-11-12)
- Not reproduced as reported: fresh profile, welcome (with and without a colour picked there), then every Appearance control (source, swatch, custom) changes the UI, hidden and SMOKE_VISIBLE=1.
- Real cause found and fixed: a nacre:// page typed into a web tab (or shown over it) kept the site's theme-color,
so under the Website source palette/fallback picks showed nothing.
Tab::site_colouris None on internal pages;drawrestyles when the active tab's site colour changes (also on Back to the web page). Test added. - Verified: 53 unit tests;
SMOKE_SIZE=1280x1100 tools/smoke.sh tests/smoke/colours.txt(new, pagepages/theme-colour.html) all shots as expected; visible run covers site → Settings → Back (taps miss at 772 px). - System accent on niri + Caelestia: read
~/.local/state/caelestia/scheme.jsonprimary before kdeglobals and GNOME's stale'red'; test added; smoke.sh now isolatesXDG_STATE_HOME. Visible shot with a copy of the user's scheme shows the desktop's pink-purple. Not done: live follow of wallpaper changes (restart needed). - Not seen: the user's exact path, if it was another one; ask them to retry.
S016 follow-up — R1-10 cookie tab spinner (2026-11-12)
paint::cookie_spinner: a stroke along a 7-lobe scalloped cookie, arc timing from the original'sdraw_spinner(grows to 270°, retracts, turns; the outline turns too). Motion off: still three-quarter cookie, no repaint.- Tab favicon spot (
chrome.rstab): spring on loading; at the end the stroke closes into the whole cookie and shrinks/fades while the favicon grows back. Tests: arc bounds and outline (56 unit tests green). - Verified:
SMOKE_VISIBLE=1 tools/smoke.sh tests/smoke/chrome.txtshotstab-spinner-a/b-dark(two phases) andtab-spinner-morph-dark(closing cookie over the globe),loaded-dark(favicon back). Light theme not shot. - Not changed: the downloads button keeps its plain circular spinner.
S016 follow-up — R1-15/17/18 flyouts (2026-11-12)
- R1-15: the shield flyout ("Protection") holds Ad blocker (global and per site, count, lists), Privacy mode (the
incognito setting in incognito windows, as the original) and VPN (switch, provider, status) as separate groups,
each with a settings icon. The original had no VPN toolbar item, so
Flyout::Vpnis gone: the VPN button stays (status dot) and opens the shield flyout. - R1-17:
menus::actionsused a wrapping layout that centred itself in the full-window area and stretched the QR flyout to the bottom; now one row. QR flyout: title with copy/save icons, code, hint, address. - R1-18: panel flyouts get
header(title + icon actions),group(accent labels),entry(icon, two lines, time),empty_state; downloads, apps, site info, profiles, bookmark, back list use them (DESIGN.md). - Verified: build, 56 unit tests,
SMOKE_VISIBLE=1 tools/smoke.sh tests/smoke/chrome.txtdark and light shots. Not seen:entryrows with content (back list and apps are empty in the smoke profile), per-site shield line (file:// has no host), shield on a short window (scrolls, not shot). - Later: the original's history, bookmarks and passwords toolbar flyouts (search pill, timed rows); today those buttons open the pages.
S016 follow-up — R1-21 controls hold still under the pointer (2026-11-12)
- Recording: Appearance page while scrolling; segmented buttons showed other controls' checks. Cause:
segmentedkeyed its animation state on its screen position. Now on its own widget id (DESIGN.md "Widgets"). - Interface size: new
settled_slider(value label while dragged, set on release; click and arrows at once), so the page no longer rescales under the pointer. Contrast, dim, blur stay live (repaint only). Going back to 100 % now resets the zoom (style_windowskipped 1.0). filter_chipkeeps one width (check slides into reserved space): Style chips, toggle chips, import chips, the permission prompt's Remember and find's Match case no longer push their neighbours.- Selftest
press/drag/release,scroll x y dy. Tests: settled slider, filter chip width (58 green). - Verified:
SMOKE_SIZE=1280x1600 tools/smoke.sh tests/smoke/sliders.txtandSMOKE_VISIBLE=1 … sliders-visible.txtshots (held: label, page 100 %; released: 125 %; scroll: right checks). Not proven: the recording's tearing-like frames (looks like capture tearing, not reproduced); no regression test for the segmented id.
S021 — Phase 4 review (2026-11-12)
docs/review/phase4.md: what to try, launch, known limits; user tried a throwaway profile; 7 items (R4-01..07).- Fixed: R4-02 duplicate VPN toolbar button removed (
fc0df2a). R4-01 wontfix (user's desktop). - Open: R4-05 CRITICAL web content takes no clicks and has no context menu (→ S006 first); R4-03 YouTube; R4-04 inline address autofill; R4-06 own context menu; R4-07 automated heavy-web smoke tests.
- Not done: nothing else reported; the user may add more items. Run /plan-generate for fixes (R4-04, R4-06) and packaging when asked.
S006 — Browser basics pass, part 1 (2026-11-12, stopped at the context limit)
- R4-05 fixed: clicks, keys and the wheel reach web pages (
window_inputusedis_pointer_over_egui, true over the page's central panel). Selftest clicks now use the real input path;input.txtfails on the old code. - R1-03/R1-12/R4-03 YouTube loads: HTTP/2 header limit raised in
vendor/servo-net(D-012). R1-14: mainstream Firefox-form UA. R1-13: inline SVGcurrentColorshim. Escape leaves page full screen (inverted check). - New:
basics.txt,input.txt,heavy-web.txt(internet); selftestassert,expect,waitfor,locate. - Green: input, basics, dialogs, launch, restore; 60 unit tests. heavy-web: DDG, Wikipedia pass; YouTube can't play or PiP (no MediaSource in Servo 0.7, DESIGN.md "Engine limits").
- Not done: single-instance test, remaining
doshortcuts, FEATURES rows, site doctor (Google sign-in, captchas, Reddit, GitHub, caching), R1-04. Resume at the plan's first unchecked box.
S006 — Browser basics pass, part 2 (2026-11-12)
- New:
keys.txt(every shortcut action except save page, print, incognito, quit),cache.txt+cache/server.py(HTTP cache, offline),site-doctor.txt(internet), selftestlaunch(single instance: second process hands over). - Fixed: view source of
file://pages ("http: invalid format", now read from disk); windows asked for by a timed step (selftest) opened only on the next window event (new_eventsnow opens them). basics.txt search check uses a local search engine (DDG's own navigation raced the next step). - Green together (SMOKE_VISIBLE): launch, restore, input, basics, keys, dialogs, cache; 60 unit tests.
- FEATURES "Browser basics": every row verified with what was not checked named (drag reorder, close others, incognito, match case, per-site zoom, link/image menus, HTTP sign-in/file picker, save page, gamepad, notifications).
- Site doctor (fresh profile, direct connection, shots in
target/smoke/site-doctor-2): DuckDuckGo search + open a result OK (no "Oops"). Google sign-in page renders, email field takes typing; Next not pressed (sending the form needs the user's OK), so whether Google accepts the browser is unknown. reCAPTCHA v2 and hCaptcha demos: widget iframes load and draw the checkbox (not clicked; solving not tried). Turnstile demo: API runs, test-key token set, widget paints as a black half-disc. Reddit r/rust: posts list and scroll; videos black (HLS needs MediaSource). 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".
S022 — MediaSource (MSE) spike (2026-11-12)
- Done: upstream check (nothing merged; servo#40423 draft, #47269 closed); docs/engine/mse-spike.md with findings, sized plan, risks and recommendation. Prototype on branch
s022-mse-proto(worktree ~/Projects/Nacre-s022, own target): MediaSource/SourceBuffer/SourceBufferList over gst_mse, vendored script, script-bindings, servo-media, player and gstreamer.tests/smoke/mse.txtpasses on the branch (chunk-appended fMP4 and WebM play, frames shown). - YouTube: own player, blob MediaSource. AV1 run: time 0→12 s with no picture (no AV1 decoder). isTypeSupported now needs a decoder. VP9+AAC stalls at readyState 0 (gst_mse bug 3: split A/V init segments).
- Rebuild cost: script edit 566 s, backend-only edit 106 s, first vendored build 593 s.
- Decision D-015: go, option A; follow-up plans S026–S030 written.
- Not done: Windows runtime not tried in the VM (sizes from the release index only); seeking and quality switches untested.
- Later: Servo refuses fetch/XHR of file:// from file:// pages (smoke clips are base64 scripts); the selftest
jsprobe can hang when the script thread blocks (seen once on YouTube).
S008 — Stores and pages pass (2026-11-12)
- New (offline;
python3 -m http.server 8768 --bind 127.0.0.1 --directory tests/smoke/pages &andpython3 tests/smoke/net/server.py &first):stores-pages.txt+tools/check-shots.py(17 pages, none blank),stores-vault.txt+-check.sh,stores-lists.txt+-restart.txt,stores-apps.txt,stores-import.txt(+make-import-home.py),stores-settings.txt+-check.sh,site-memory.txt+-restart.txt(R1-20). Selftest:perm,prompt,vault,bookmarks,cmd import|install_script|open_app, statuspermissions,site_state,scripts,vault_mode,bookmark_folders. - Fixed (R1-20): Images permission did nothing (hub now blocks image requests per site); Sound block did nothing (tab muted on load); menu/page permission edits reached permissions.json only at exit (now saved at once and the hub refreshed); a new tab showed 100 % zoom for a site with saved zoom (tab.zoom stale); settings-write.txt privacy tap moved with the page layout.
- Shown "Not available" (Servo 0.7,
Kind::engine_limit): location, camera, microphone, device list, persistent storage, clipboard, JavaScript. - Green: all new scripts, launch, restore, 61 unit tests. site-memory restart failed 3 times in a row once under heavy machine load (image still loaded at the first check), passed 8 times after; cause not found.
- Not done: per-site privacy-mode flag (privacy mode is global, S024); importer for the old Python Nacre's JSON stores (none exists); native file dialogs behind Import/Export; addresses, cards, generator, auto-lock timer; notification display; user-script disable/edit/exclude.
- Later: tab titles of nacre:// pages show a generic icon; selftest
setwith a bad value only logs (does not fail the run).
S026 — gst_mse fixes for split audio/video MSE (2026-11-12, branch s022-mse-proto)
- Our gst_mse 1.28.9 copy in
vendor/gst-mse/(LGPL,nacre.patch, write-updocs/engine/gst-mse-patches.md);tools/gst-mse.shbuilds it intotarget/gst-mse/. Nacre finds the library by RUNPATH (build.rs) and the plugin by GST_PLUGIN_PATH (src/main.rs), and logs both paths (D-016). - Fixed: update-end before parsing (append now waits for its end-of-append), idle update/update-end ticks, streams exposed before every SourceBuffer's init segment (plus a leaked
media_source_lock), msesrc pad task giving up on a not-yet-active peer (split A/V hung ~1 in 4). Settle work-around gone frommse.rs;remove()reports its own updateend (gst_mse's remove is a stub). Opus counts as supported with a decoder only (Arch has no opusparse). - Tests:
tools/gst-mse.sh test(3 C tests, each fails on the system 1.28.9);tools/smoke.sh tests/smoke/mse.txtgreen incl.?split(video WebM first, audio fMP4 2 s later, picture shown). - YouTube (
tests/smoke/youtube-mse.txt, internet): plays with picture and captions. Run 1 VP9 144p + Opus, time 8 → 10.7 s between 15 and 30 s (stalls); run 2 VP9 240p + Opus, played to the end ("Up next"); the js probe after the end never returned. - Not done: YouTube stalls and the hung js probe not investigated (S027/S028); the pad-task race only shows in the C test under CPU load.
- Later (S027/S028): coded frame removal in gst_mse (
removeis a stub);HTMLMediaElement.bufferedfrom the MediaSource; script thread blocking (S022 note) seen again after the video ended.
S009 — Integrations pass (2026-11-12)
Done: Discord against a fake IPC server (SMOKE_FAKE_DISCORD=1, tests/smoke/net/fake-discord.py, check script integ-discord-check.sh): handshake, SET_ACTIVITY for media (title, artist, progress, button, paused) and browsing. R4-09 fixed: unusable favicon URLs (data:/http:/long) fall back to https://<host>/favicon.ico (no third party), icon_url + unit test. Spell check (integ-spell.txt, tiny offline dictionary): found and fixed that the page menu got no word in text fields (Servo has no caretRangeFromPoint; the spell mirror's underlined words are hit-tested now). Updates (integ-updates.txt, local fake API): notice shown, nothing downloaded. Memory saver (integ-perf.txt, 3.5 min): freeze, unload, reload. Gamepad API empty without a device, idle CPU 0 % (integ-idle-cpu.sh). Single instance was verified in S006. 62 unit tests green.
Not done: real Discord, real gamepad, spell dictionary download/add word/other languages, per-site Discord IDs, media flyout/visualizer/mute (S005 did PiP).
Later: S010 list: user checks the Discord icon with their own client (the Discord client may refuse a .ico icon; then a PNG source is needed), plays a real gamepad, tries the dictionary download.
S023 — Request headers and third-party cookies in servo-net (2026-11-12)
- Done:
vendor/servo-net/nacre.rs(Nacre patch, D-017): embedder-set extra headers, third-party cookie switch, top-level site per webview (from Document requests andnotify_url_changed, forgotten on close).http_loader.rsadds the headers and skips sending/storing cookies for third-party requests; same for WebSocket handshakes. Nacre sets them inrefresh_hub_config(hub::privacy_headers: DNT + Sec-GPC, Save-Data). - Settings: "Send Do Not Track and GPC", "Save data" and "Block third-party cookies" are plain working switches; blocking is also on in privacy mode (
App::privacy_mode_on). - Tests: 2 new unit tests (headers; site matching incl. subdomains, eTLD+1, IPs), 64 green.
tests/smoke/privacy-net.txt(loopback; server routes /setcookie, /cookies, /tp, /pixel, /reset,reqslog) green twice: cross-site frame and picture get and store no cookies when on, do when off, blocked again in privacy mode; same-site subdomain keeps its cookie; headers present, gone with DNT off. net-privacy and launch still green. - Patch list for Servo upgrades: DESIGN.md "Vendored servo-net patches" (all patch sites).
- Not done:
document.cookie/ Cookie Store API in cross-site frames (script sends no webview id; servo-script not vendored). No real-site login check with blocking on (Google/GitHub sign-in) — for the user. - Handoff to S024: privacy mode already turns third-party cookie blocking on; S024 only extends
App::privacy_mode_onif it adds per-window/per-site modes. - Later: a test server left by an older session held ports 8766/8767 with stale code; stop old ones before net smokes.
S024 — Privacy mode that holds up (2026-11-12)
- Done:
PRIVACY_JSrewritten after the original privacy.py (Firefox-consistent; per-run + per-site noise; frames incl. script-made ones; native-looking functions); paused per site from the shield menu (privacy.mode_off); third-party cookie blocking + Firefox-style Accept-Language/navigator.languagesswitched by privacy mode (servo-netnacre::set_language_list, methods.rs step 12);FRAME_COOKIE_JSemptiesdocument.cookiein cross-site frames whenever third-party cookies are blocked; incognito on by default (verified). - Engine gaps fixed on the way:
Hub::screen_geometry(screen was 0 x 0),document.fonts.check()and a pass-through DynamicsCompressorNode (both always on; without them Cover Your Tracks never got a result). - UI: Settings → Privacy → Privacy mode sub-page (what it hides, what not, paused sites, "Test it"); shield flyout explains and has "On ".
- Tests: 3 new unit tests (navigator values from UA, script filling, language list), 67 green. Smokes:
privacy-mode.txt(fingerprint page off/on JSON + shots),privacy-incognito.txt(SMOKE_ARGS=--incognito),privacy-net.txtextended (frame cookies, pause, Accept-Language; 1 flakyEvaluationFailure(None)in 5 runs), launch, net-privacy green. Selftestsave <name> <js>; smoke.shSMOKE_ARGS. - Cover Your Tracks (
coveryourtracks.txt, direct): per-metric bits ~124 → ~58; canvas/audio "randomized", touch/platform/WebGL tells gone; headline still unique (UA, time zone, no IndexedDB). Table indocs/engine/privacy-mode.md. - heavy-web with privacy on: DuckDuckGo + Wikipedia pass (removing TouchEvent globals broke Wikipedia search and WebM playback: kept them); YouTube part fails, as in the baseline without privacy mode (which also crashed there once and hit DuckDuckGo's rate limit once).
- Not done: plugins list, IndexedDB, DOM-measured fonts, web workers (engine/coverage limits); real sign-ins with privacy mode on (for the user).
- Later: normal mode still shows Servo's "Linux"/"4.0" platform values next to the Firefox UA; the YouTube results step of heavy-web crashes/times out on main.
S025 — Cookies encrypted at rest (2026-11-12)
- Done: servo-net hands its public cookie jar to Nacre (
nacre::set_cookie_persistence,cookie_jar_snapshot;resource_thread.rsload/Exit; DESIGN.md patch table, D-019).store::cookiesseals it (vault's XChaCha20-Poly1305) in<data>/cookies.bin, key in the OS keyring (keyring3.6: Secret Service, Windows Credential Manager); saved every 5 s when changed and at exit; old plainengine/cookie_jar.jsonmigrated and deleted after the encrypted copy reads back. Settings → Privacy → Site data shows "Cookies on disk"; selftest status hascookies. - Recovery: no keyring → cookies for the run only, nothing written, Settings says so. A file that doesn't decrypt is moved to
cookies-unreadable-<time>.bin(kept); it opens again only with the old keyring entry (serviceNacre, accountcookies <data folder>). - Tests: 3 unit tests (round trip + wrong key, migration, moved aside), 70 green. Smokes (loopback
/login,/whoami):cookies.txt→cookies-restart.txt(still signed in) →cookies-cleared.txt(clear on close) withSMOKE_KEYRING=1(smoke.sh: own bus without activation + throwaway GNOME Keyring); no cookie_jar.json,grepof the home finds no cookie value;cookies-nokeyring.txt(nothing written, Settings shot); incognito with keyring (nothing written). launch, privacy-net green. keyring cratecargo checks for x86_64-pc-windows-gnu (scratch crate; Nacre itself not). - Not done: clear-data page not driven by a smoke (same
clear_cookiescall as clear-on-close, picked up by the 5 s save); no real-keyring run on the user's desktop (KWallet/gnome-keyring prompt) — for the user; Windows run untested. - Later:
engine/auth_cache.json(HTTP auth passwords) andhsts_list.jsonare still Servo's plain files; Nacre has no logger, solog::lines (incl. the cookie store's) go nowhere.
S027 — MSE DOM to spec (2026-11-12, branch s022-mse-proto)
- Done: MediaSource/SourceBuffer/SourceBufferList own the spec state; every event is a media element task. Attach/detach, duration change,
HTMLMediaElement.buffered/seekablefrom the MediaSource (live seekable range),activeSourceBuffers,removeSourceBuffer,abort,changeType(same container only), sequence mode,endOfStream(error)→ element error steps,isTypeSupportedregistry check. Object URLs in a per-global map (revoke, unload); weak event sink (noTrustedcycle). PrefNACRE_DOM_MEDIA_SOURCE_ENABLED(D-017). gst_mse patches 5–9 (realremove(), abort resets parser, reset crash, track feeds by id, appendWindowStart). - Tests:
tests/smoke/mse.txt(11 spec cases) green,mse-leak-check.sh(MediaSource freed),mse-off.txtgreen,tools/gst-mse.sh test5/5. - WPT (
tools/wpt-mse.sh, 60 files, no workers/ManagedMediaSource): 239/407 subtests. Below the ≥ 293 target. Run 1's 246 was inflated: the driver read the previous test's result before the next page committed (fixed: results carry their path). - Not to spec / not done: player integration (S028):
loadedmetadata/HAVE_METADATA after the init segment only (duration-boundaryconditions 0/13, play/seek tests 0/1 each); changeType across containers (gst can't; changetype-play* ~1/19); errors before the init segment;bufferedafterremoveSourceBuffershould throw; Opus/fLaC in MP4 (no decoder). Worker MSE and ManagedMediaSource out of scope. - Seen once: a full WPT run hung the script thread (driver timer stopped at file 19); not reproduced in the rerun. Watch in S028.
S031 — SIGSEGV after an ad-blocked script load (R5-01, 2026-11-12)
- Repro:
crash-adblock.txt(685 cancelled loads/run) 0 crashes in 3 runs, heavy-web 0/2, a YouTube search loop 0/3. The crash is rare online; the two S024 cores (hidden Xvfb heavy-web runs) were symbolized with an unstripped rustc twin of the same commit (same .text). - Backtrace (both cores): script thread,
ScriptThread::handle_msgs→TimerListenertask →OneshotTimers::fire_timer→Function::Call_→GlobalScope::from_object→JS::GetNonCCWObjectGlobalreading a swept object (0x4b4b…poison). The ad-block log line before it was a bystander. - Cause:
fire_timer(servo-scriptevent_loop/timers.rs) moves every due timer out of the traced timer list into a plain localVecand runs them one by one; a GC inside one callback can't see the rest, so theirTracedCallbackfunctions are swept and the next call reads a dead object (or a reused cell: the wrong function runs). - Proof offline:
pages/crash-timers.html(40 timers due together, each allocating): 9 of 40 callbacks run, the other 31 are silently lost, 3 of 3 runs; without the allocation all run. - Fix: servo-script vendored (
vendor/servo-script,[patch.crates-io]);fire_timerkeeps due timers in aRootedTraceableBox<VecDeque>,JsTimerTask::invokeroots the running callback (DESIGN.md "Vendored servo-script patches"). After: 40 of 40 run. - Smoke
crash-adblock.txt(~870 cancelled loads + 3200 timers under GC pressure): fixed build exits 0 3/3 (visible); the pre-fix build (68346f0) fails it (timer page never finishes). No Nacre-side change, so no unit test. - Reruns (resumed session): crash-adblock 3/3, net-adblock, launch green (visible); heavy-web ×2 no SIGSEGV and no core, both reach
status done; their failed asserts are YouTube search/playback/PiP (main has no MSE, S028).cargo test70 green. - S028 merge: the MSE branch also vendors
vendor/servo-script; take the branch's files and re-apply the twoNacre patch (S031)hunks inevent_loop/timers.rs(the branch's timers.rs is the pristine 0.7.0 file).
S028 — MSE player integration, merged to main (2026-11-12)
- Done: attach never blocks the script thread (max gap 26 ms); loadedmetadata after the init segment (own MP4/WebM byte-stream check); readyState from buffered at currentTime; seeks inside/outside buffered, rate,
endedafter endOfStream; decode error, garbage and media-before-init append errors;bufferedthrows once removed; codec table (isTypeSupported=canPlayType: vp09, Opus/fLaC, vorbis, hevc, av01 with dav1d). gst_mse patches 10-12 (EOS reaches msesrc; duration only grows; coded frames raise it to the buffered end) + a reopen deadlock fix (append after endOfStream took TRACKS_LOCK twice and hung the script thread).s022-mse-protomerged into main (merge commit, S031 timers hunks kept); main built, mse.txt (11 spec cases + leak check) and crash-adblock.txt green on main (hidden). - Tests: C tests 7/7 (
/mse/reopen-append,/mse/duration-from-framesnew), cargo test 70 + media crates 11. Visible smoke set on the branch: launch, basics, input, chrome, keys, mse, mse-player 9/9, mse-off, settings, crash-adblock green; heavy-web only fails the YouTube results list (S006 layout gap); YouTube watch plays over MSE (blob: src, currentTime > 1), PiP works. - Reference (Chromium in the app's browser pane, D-030): mse-basic mp4/split match (duration 5.08 / 5.023 after patch 12; was 1.009). Chromium rejects the WebM test clip ("block with a timecode before the previous block"), Nacre plays it. Chromium fails mse-player
garbage/garbageFirst(spec cases Nacre passes). YouTube watch at 772 px (desktop site in both; the pane's viewport under 768 px emulates a phone and got m.youtube.com, so not used): Chromium paints the video frame in the player; Nacre's player area stays black while currentTime advances, its title/channel skeletons sit inside the black area, the search box is drawn twice, header light vs Chromium's dark theme (S029). - Not done: WPT rerun (baseline 239/407); worktree
~/Projects/Nacre-s022not removed (the S028 session runs in it; remove withgit worktree remove ~/Projects/Nacre-s022once it ends, branch stays on origin). - Seen:
/mse/split-audio-videofinal ready-state check failed 2 in ~70 rounds after patch 12 (0 in 24 before; msesrc reads position from pad segments, Nacre's DOM computes readyState itself). - Later:
endOfStream()aborts gst's parser but notByteStreamCheck(a page continuing a cut box after reopen would differ); a realtools/refshot.py(S029).
servo-cleanup — Servo removal inventory (D-032, 2026-11-12)
- Done:
docs/engine/servo-removal.md: Cargo deps/patches, vendor crates and why, src/ hooks by engine area with the WebKit replacement each needs, docs sections, Servo-only vs kept tests/tools, suggested removal order. - Removed:
tools/wpt-mse.sh,tests/wpt-mse/(Servo MSE conformance, nothing else used them) and their CLAUDE.md/DESIGN.md mentions. - Not done (on purpose): src/, Cargo.toml, vendor/, build.rs, gst-mse tools and MSE/painter smoke scripts stay until the WebKit glue builds. No cargo run.
webkit-spike — GTK 4 host + egui overlay over WebKitGTK, result (D-033/D-035, 2026-11-13)
- Done: spike run hidden (Xvfb + nested niri, software GL; kwin_wayland not installed) on YouTube watch, Wikipedia, DuckDuckGo: egui flyout over a playing video, GTK pick routes egui vs page right, real click/wheel/right click/typing/IME reach the page natively; egui context menu from WebKit's hit test opens links in tabs; window.open → tab. Details and numbers:
docs/engine/webkit-spike.md. - Pacing identical with/without the overlay (29.6 vs 29.4 fps, llvmpipe cap; 628 video frames, 0 dropped); egui 65 renders/15 s, 0.46 ms p50; overlay +~20 MB PSS (1310 vs 1287 MB, one YouTube tab).
- Spike fixes: egui IME needs
IMMulticontext::set_client_widget;wl-inputWL_INPUT_FLIP_Y=1(nested niri mirrors Y);SPIKE_EGUI=0layout; URL trim. Harness:spikes/webkit-egui/run/. - Decisions D-035 (result + hidden harness), D-036 ad block, D-037 cookies, D-038 profile
nacre-browser, D-039 media, D-040 tuning. - Plans
08 WebKit engineS044–S055 written, in INDEX before the other open plans, tracker seeded. - Not proven: GPU/dmabuf path and 60 fps under the overlay (needs a visible run), Web Inspector, full screen, file chooser, HiDPI.
S044 — Engine seam: privacy rules and request policy out of hub.rs (2026-11-13)
- Done:
src/net/privacy.rs(privacy headers, tracking strip, Firefox-style language list + tests),src/net/policy.rs(HubConfig,Request,Outcome, puredecide()+ 4 tests);Hub::decideis a thin Servo adapter (Outcome, sinceDecisionis taken bystore::permissions). - Kept in
hub.rs: the third-party/site test and header-append test (they test vendored servo-net; WebKit's cookie policy replaces them). - Verified: release build green,
cargo test74 green (was 70), smokes launch, basics, input, net-adblock, net-privacy exit 0 (hidden, Servo). - Not done here: boxes 3–5 (ViewId, neutral payload types, selftest) moved to S045 (D-041).
S045 — GTK 4 host, WebKitGTK views, Servo out (2026-11-13)
- Done:
src/engine/(ViewId, neutral Event payloads, NetworkSession/WebContext/Settings per profile, one WebView per tab, signals → Event),src/egui_area.rs(spike + clipboard, cursor, HiDPI, focus), GTKApp(Rc, idle pump, 100 ms tick), capture-phase shortcuts, stop/reload/zoom/back-forward, real load progress; Servo, winit, gilrs, gst rpath out (cargo tree -i servofails). - Verified: release build +
cargo test73 green;tools/hidden.sh tests/hidden/basic.txt(new tab, chrome dark/light, tabs open/switch/close, focus status) andweb.txt+web-driver.sh(Wikipedia under the chrome; YouTubecurrentTime3.7 after a real wl-input click, media button and tab speaker show) — shots read. - YouTube "click hit
<html>": YouTube keeps the page's main thread busy ~7 s after load in the hidden session (software GL; same with ad blocker/cosmetic/memory limit/cache model off) and swaps its skeleton for the player meanwhile; web.txt now clicks once the point hits#movie_player. - Fixed: the address field kept egui focus (ring) after a new tab's page opened:
focus_pagedrops egui text focus, attaches the view first; new foreground web tabs, tab switches and new views call it. - Shots vs Servo
target/smoke/chrome5: chrome identical; page text 1 px higher; output 1280x800 vs 820. Media button was only absent while paused. - Stubbed for S047/S048: picture in picture (toast), selftest
rclick/pagescroll/pagetypevia page JS, request policynet::policy::decideand ad-block request blocking not wired (cosmetic/page scripts only), cookie persistence (S051),Shortcutper-app window class, console messages. - Later: Wikipedia stays light with Nacre dark: prefers-color-scheme does follow Nacre (checked), Wikipedia's own Appearance shows "Light" (its default); system dark detection may still be polluted by Nacre's own prefer-dark.
navigation_action().frame_name()is the target name, not "subframe" — check iframe navigations don't reachon_navigationas main-frame (S047/S048).
S046 — Smoke harness and selftest on the GTK host (2026-11-13)
- Done:
tools/nested-session.sh start|stop <dir> [WxH](Xvfb → nested niri, own X display/runtime dir/env, several at once;tools/lib/xresize.pysizes niri's winit window since it ignoresmode);tools/smoke.shruns in it with its own bus always (keyring still opt-in);tools/wl-input/own crate (built on first use);tools/hidden.shon the same pieces. - Selftest: hidden runs send
click/rclick/pagescrollthrough wl-input andpagetypethrough wtype (script waits for each helper);resizeasks the nested niri; shots stay GTK snapshots. - Fixed: local video didn't play (web process sandbox has no /home): XDG user dirs + test pages read-only (D-043,
media_dirstest);input.htmlform cancels its submit (a real Enter navigated and lost the counter). - Verified hidden, fresh outdirs: launch, basics, input, keys, chrome exit 0, shots read;
hidden.sh basic.txtgreen;cargo test74; nodev.nacre.Nacrewindow on the user's niri in 152 samples. - Not done: no visible run. The user's niri config has no window rule for
dev.nacre.Nacre, so a window would take focus; smoke.sh now refuses visible runs without the rule (D-044). Other smoke scripts not ported (each moves with its feature's plan). - Found: loopback http goes through the bridge and fails ("restarted too many times") → S050 box; use
NACRE_NO_BRIDGE=1for loopback smokes until then.
S047 — Page scripts, page messages, find and JS on WebKit (2026-11-13)
- Done: user styles are WebKit user style sheets (author level, all frames) via
Engine::set_page_content; patterns WebKit can't say (*inside a host, a port) keep the<style>script (store::scripts::user_style);nacremessage handler registered before the view is built; find bar onFindController(View::find/find_finish,Event::Findcount, "n of m" kept by Nacre:step_match,FindState.searched). - JSON result shape unchanged:
View::evaluate_javascriptgivesserde_json::Value(undefined/null →Null). - inject.rs: dropped FIND_JS, SVG_COLOR_JS, FONTS_CHECK_JS, COMPRESSOR_JS,
mainstream_ua, PiP pause-before-seek; caret workaround kept for text fields (comment says why); privacy mode's WebGL unmasked vendor/renderer now read as the masked ones ("WebKit", "WebKit WebGL"), no fake debug extension; FRAME_COOKIE_JS kept until WebKit's third-party cookie policy is on. - Verified: release build,
cargo test75 green; hidden smokes exit 0: basics (find [1,3]→[2,3], all matches highlighted in find.png), dialogs, stores-apps (new file:// style-sheet probe), stores-vault + check, integ-spell.grep -n Servo src/inject.rsempty. - Smoke changes: basics SVG check reads the computed colour (WebKit paints currentColor itself);
waitloadafter duplicate_tab (1 s was too short under load);pages/probe-file.user.css. Note:*/in a style's header pattern ends the CSS comment. - Not done: visible run; D-045 (visible runs allowed with focus change) not written — the auto-mode classifier blocked the DECISIONS edit relayed from the orchestrator; the user should confirm/add it.
S048 — WebKit UI callbacks: pop-ups, dialogs, menus, permissions, full screen, inspector, PiP (2026-11-13)
- Wired and smoke-checked: pop-ups as tabs (related view,
window.openerkept; blocked → bar, "Allow" opens the blocked URL), alert/confirm/prompt answers, beforeunload (closing a tab now runs WebKittry_close; 3 s fallback; browser navigation asks too), HTTP sign-in (saved login filled, signs in), select/colour at the element rect, portal file chooser (visible run), Nacre's context menu with link items from the hit test, notifications/location prompts, system notifications, page full screen hides the chrome, PiP moves the live view (no reload, video keeps playing). - Devtools: the smaller option: F12 opens WebKit's Web Inspector (attached);
nacre://devtoolslists the window's tabs to inspect plus remote inspection (WEBKIT_INSPECTOR_HTTP_SERVER127.0.0.1:6080, restart). Console/network/elements tabs,DevToolsEval,ConsoleLineremoved. - Permissions: media stream + WebRTC on (each use asks); saved notification answers given to WebKit at start; unavailable with WebKit: storage persist, per-site JavaScript (not wired yet), MIDI, Bluetooth, wake lock, background sync, game controllers (no request reaches the browser). Pointer lock allowed, EME/XR denied (Widevine later).
- Fixes: colour picker closes on Escape/outside; egui takes the pointer over the page while a dialog/menu is open (page clicks never reached egui); prompt names "This page" for file://;
on_notificationdropped every prompt-granted (not remembered) notification. - Verified: build,
cargo test75; hidden smokes exit 0: dialogs, basics, pip (new), auth (new, server.py + NACRE_NO_BRIDGE=1), launch, keys, input; visible run (tests/smoke/visible-ui.txt, by hand, user's bus): portal file chooser, full screen, inspector shots read. - Not done: notification popup not seen on screen (user switched workspace;
/notificationscount checked hidden); inspector detach, camera/mic with a real device, HTTP auth for a proxy, settings page rows not re-shot. - Later: egui colour picker shows broken glyph chips (missing emoji in Nacre's fonts); user-visible Servo texts in settings.rs/misc.rs (About, freeze tabs, Widevine, clear data, task manager); closing a window/quit doesn't run beforeunload; smoke.sh still refuses visible runs without the niri rule (D-045 says it's not needed) and keeps a private bus (no portal); pop-ups never open as separate windows (WebKit window properties unused).
S049 — Ad blocker on WebKit: content filters + web process extension (2026-11-13)
- Done: network rules → WebKit content filters (
adblock::convert, deduped, split at WebKit's 150 000-rule limit with every exception in each filter), compiled once per list fingerprint inUserContentFilterStore; per-site pause / off = filters detached indecide-policy; engine now cosmetic-only.webext/cdylib (minimal FFI, no maintained bindings): DNT/Sec-GPC/Save-Data, sub-resource tracking-param strip,$redirect=stand-ins vianacre-resource:(browser-served), blocked counts.net::rulesshared by#[path].policy::decidelost its ad blocker branch (main frames + Images only, still unwired → S050). - Coverage (seed lists): 152 610 network rules, 151 179 converted (99.1 %), 149 902 WebKit rules, 268 redirects; dropped by reason in DESIGN.md "Ad blocker on WebKit". Conversion 0.4–0.6 s; first WebKit compile 7–18 s (cached after: ms); no network blocking until it's ready on a fresh profile.
- Count method: WebKit logs each filter block to the console; the extension's
console-message-sentreports it (nacre-blocked); reset moved into theload-changedhandler (race). Extension path:NACRE_WEBEXT_DIR,<exe>/../lib/nacre, else the exe's folder (sandbox loads it from target/release fine). - Fixed (pre-existing): a list change during a build was dropped (builds now queue); with custom lists, own-rule changes never rebuilt.
- Selftest
waitstatus <s> <pointer> <json>, status/adblock/filters_ready. smoke.sh visible runs no longer need the niri rule (D-045). - Verified hidden:
net-adblock.txt(+ stand-in check) andcrash-adblock.txtexit 0 withNACRE_NO_BRIDGE=1;cargo test77 + webext 1. privacy-net: header checks pass (server log: DNT/GPC/Save-Data on every request while on, none off) but the script exits 1:*.nacre.testneeds DoH through the bridge and third-party cookies (S050). - RAM (hidden, software GL, 4 tabs: new tab, Wikipedia, Guardian, BBC; web process tree PSS, last 20 s median): filters on 1250 MB, off 1276 MB; blocked 1/23/22.
- 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;$removeparamrules.
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 throughnet::download/manager hand-off; third-party cookies = NoThirdParty + ITP; Accept-Language;policy::decideincl. 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/savewait 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 test78 + 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.
S056 — Daily-use fixes from the user's first WebKit test (2026-11-13)
- PiP: only the video now (page script gives it a fill style, its parent goes full screen; the browser keeps that full screen inside the PiP window, and the page leaving it ends PiP). Not the
<video>itself: WebKit's video full screen stops playback in a GTK host (main window too). Window 480 px wide (rememberedwindow.pip_width) × the video's aspect; floats on niri as a transient child of the browser window, app iddev.nacre.Nacre.Pip(gdk_wayland_toplevel_set_application_id on map). Position: Wayland clients can't place windows, so niri decides. - PiP controls: a surface pill with Material icon buttons round the big play button, mute shows its state, fades with hover; main window shows an empty state with "Bring it back".
- Bindings audit on WebKit: shortcuts (keys.txt) ok; wheel, right click, typing on the page (input.txt) ok; side buttons 8/9 did nothing → window capture gesture runs back/forward over page and chrome (bindings.txt); middle click on a link loaded it in the same tab → new background tab, also for target=_blank, Ctrl+click same path, Ctrl+Shift in front (Ctrl not testable: wl-input can't hold keys); Ctrl+wheel zoom and middle click on a tab: code checked, not run.
- Context menu: Nacre's menu only comes from WebKit's
context-menusignal, which a cancelledcontextmenustops (ctxmenu.txt: site box → site menu only, plain text → Nacre's). On YouTube one right click gives no Nacre menu (hidden run); YouTube passes a second right click on purpose (as in Chrome) — asked the orchestrator whether that was the user's case. - Spelling: the red line was the page-side mirror (not egui): now position:fixed at the field's viewport box, border-box, an input's line box = its content height (integ-spell.txt: offset, transformed box with a tall input).
- Freeze: not reproduced: hidden (focus away, workspace switch) and 3 visible DP-1 runs (local video and YouTube in PiP, 60–90 s away, workspace switch): frames kept drawing, chrome and page answered. The Gdk
gdk_frame_timings_presentedwarning is GTK 4.23+ debug noise. Added a watchdog:egui area: not drawing (…)on stderr when a focused window's repaint waits > 3 s or the app stays busy, with frame-clock state, thendrawing again. - Verified: build,
cargo test79 + webext 1; hidden smokes exit 0: launch, basics, input, keys, chrome, bindings, ctxmenu, pip (+ driver: is_floating true, 480×270), integ-spell; visible: pip, YouTube PiP (video only, plays, returns without reload), freeze scenario ×3. Shots read. - Freeze, user's exact steps (YouTube → PiP → return → logo click → away in Discord → page dead, chrome fine): not reproduced on this build (new PiP path): hidden with real input after 60 s away (click, typing, scroll ok) and visible after 150–180 s away + workspace switch: selftest
pick(new) shows GTK sends page input to the WebKit view (mapped, own window, right size, focused), rAF ~72/s, page visible and focused. Regression smokepip-return.txt(PiP → return → in-page link → real click, typing, wheel). - Motion review (orchestrator; the
review-animationsskill isn't available in this session, checked against its rules): menus (floating, page menu included) grew with an overshooting spring (~220 ms) → critically dampedEFFECT(~160 ms, no overshoot); PiP controls fade withEFFECT, Motion off = no movement; PiP window open/close is niri's; nothing here animates from the keyboard. - Closed by the user (2026-11-14): the page-input loss is accepted as a one-off (old PiP code); the watchdog and
pickhelp if it returns. YouTube right click: no answer, treated as Chrome's behaviour (second right click goes to the browser). - Later:
log::calls print nothing (no logger set up); Ctrl+click/Ctrl+wheel need a key-holding test helper; keyboard Menu key / Shift+F10 gives WebKit's own GTK menu (no pointer position, Nacre declines it); S039:play_buttonshape morph and otherDEFAULT-spring controls overshoot (check against ≤200 ms ease-out).
S053 — Servo removal (2026-11-14)
- Done: vendor/servo-*, vendor/gst-mse, vendor/epaint patch, src/resources.rs, assets/servo, tools/gst-mse.sh, tests/gst-mse, mse-off/leak-check/painters smokes, S027 handoff, mse-spike.md and spikes/webkit-egui removed; DESIGN/REVIEW/FEATURES/CLAUDE/PLAN and user-visible texts describe WebKitGTK.
docs/engine/gst-mse-patches.mdkept as record. - Verified:
cargo build --releaseandcargo test(79 + webext 1) green; hidden smokes exit 0: launch, basics, input, chrome, gallery (egui text fine); end-criteria grep for "servo" in src, Cargo.toml, build.rs, tools, tests/smoke empty. - mse.txt / mse-player.txt now load pages from a loopback server (
python3 -m http.server 8765 --bind 127.0.0.1 --directory tests/smoke/pages &): WebKit rejects MSE blob URLs of file:// pages (video error 4). Result: mse-basic mp4 and split play; the rest differs from the old Servo gst_mse (not green, not caused by the deletions). - Not done: mse WebM VP9/Opus clip unsupported; spec attach (no sourceopen), ranges (seekable vs duration Infinity), removeSourceBuffer (quota), changeType unsupported; player seekBuffered/seekUnbuffered/ended (no event), garbage ("MediaSource closed"). Hidden nested session only. keys.txt ran alongside, exit 0.
- Later: rewrite mse-spec/mse-player expectations to WebKit's actual MSE behaviour or drop the cases.
S057 — Small UI bugs: Customize scroll, colour picker glyph, beforeunload on quit, site colour from the favicon (2026-11-14)
- Done: Customize sheet's Area allocated nothing, so egui_area
containswas false over most of it and the wheel fell to the page: it now allocates its rect (customize-scroll.txt: sheet scrolls to its last row, page unmoved). Colour picker: egui's hard-coded 📋 is aliased tocontent_copyin the icon font (tools/icons.py,colour-picker.txt). Quit and window close ask each page'sbeforeunload(App::begin_shutdown/shutdown_answered/cancel_shutdown): Nacre's "Leave this page?" shows tab by tab; Stay cancels and reloads the tabs that had answered; session is saved first on quit; selftestquitand the final exit skip the ask (quit_now) (unload-quit.txt). - Site colour: favicon's dominant vivid colour (
theme::dominant_vivid, 12 hue buckets, skips transparent/grey/white/black, needs ≥ 4 px and 5 %), else the page'stheme-color; page background dropped.Tab.favicon_colour, restyle onEvent::Favicon. Cause of "nothing changed": background fallback gave white/black.favicon-colour.txt(loopback server, red/blue/mono icons) +colours.txtstill green; shots read. - Verified:
cargo test81 + webext 1; hidden smokes exit 0: customize-scroll, colour-picker, unload-quit, favicon-colour, colours, launch, basics, input, chrome, newtab. - Wheel surfaces: egui Areas that allocate their rect (Customize sheet, flyouts, dialogs, menus, toasts already did).
- Not done: a Stay answer on a tab that closed in a quit leaves it reloaded (state of form fields lost); no visible run.
- Later: other Areas that only paint (none found) would repeat the Customize bug.
S058 — Ad removal animation: Pie-style cookie shield, port of the original zapper (2026-11-14)
- Done:
COSMETIC_JS(src/inject.rs) portsZAP_JS: the class/id → selectors round trip stays; selectors now get a 1 ms__nz_detectanimation andanimationstarthands over each rendered match (WebKit fires it). Visible ads get an overlay (primaryContainer 92 % + cookie shield badge,theme::zap_badgein the window's theme colours) that squishes and spins away while the ad fades, then the slot collapses (340 ms) and getsdisplay:none. Options percosmetic.hide(selectors, opts)call fromApp::zap_options(animate, ms = 900 × Motion scale, min 0.3; bg; badge). - Safety:
<video>/<audio>and their holders never touched (also with plain hiding::is(sel):not(video,audio,:has(video,audio))); ad bits in known players, tiny (< 24 px), huge (> 60 % viewport), off-screen hidden quietly; at most 12 at once. Setting off, Motion off or still mode → plaindisplay:none, counted when selectors arrive. - Differs from the original: no
offoption in the page (Nacre doesn't send selectors to paused sites, as before); script options no longer baked into the injected script (no reinstall on setting change); one count per detected element, batched. - Verified:
cargo test81 + webext 1; hiddenzap.txt(new,tests/smoke/pages/ads.html) exit 0: overlay + badge mid-animation dark and light, slots closed, player and video box intact, Motion off = no overlay;net-adblock.txt,crash-adblock.txtexit 0. Visible DP-1 (Independent, AccuWeather, Speedtest, Guardian): Guardian header slot squished then collapsed (content moves up once, no flicker seen); pages render as before. - Later:
hidden_elementscounts matches in frames and ones the page later removes (Guardian 27 vs 3 left in the top document); an element whose__nz_goneclass a page re-render strips shows again (as the original).
S051 — Profile folder, sealed cookies, site data, incognito, media source (2026-11-14)
- Profile folder
nacre-browser(D-038): first start renamesnacre-servoconfig/data/cache when only the old exists, then deletes Servo'sengine/andhttp-cache*in each profile (stderr linesprofile: …);~/.config/nacreuntouched; unit test. - Cookies (D-037, D-047): libsoup SQLite store on tmpfs
$XDG_RUNTIME_DIR/nacre-<profile>-<hash>/cookies.sqlite, written fromcookies.binwith rusqlite before WebKit opens it, sealed 60 s afterchanged(first change counts) and at quit, tmpfs folder removed after; crashed run's DB wins; Servo-era jar converted, unreadable moved aside; keyring key of thenacre-servoaccount taken over. Session cookies not kept. - Clear data: time range on
WebsiteDataManagerfor stored data and cache; cookies always whole (libsoup store has no dates; page text says so). Site info flyout: "N cookies, local storage…" (CookieManager::cookies+fetch). - Incognito: ephemeral session (already); run writes only profiles.json and the shared filter cache.
- Media (D-039):
is-playing-audio→Tab.playing_audio(audible also for Web Audio); site mute viaset_is_muted, pagemedia.act muteremoved. WebKitGTK publishes its own MPRIS player per playing web process (org.mpris.MediaPlayer2.dev.nacre.Nacre.Sandboxed.instance-N, metadata from Media Session, Playing); Nacre publishes none → one player. - Verified:
cargo test85 + webext 1; hidden exit 0: cookies → cookies-restart → cookies-cleared (SMOKE_KEYRING), cookies-nokeyring, launch → restore, privacy-incognito (WebGL vendor now WebKit's), site-data (new), media-audio (new), basics, privacy-net;grep -rl nacre-test-sessionin homes = 0. - Not done: no visible run; PiP mute button still mutes the video element (page script); Servo jar conversion tested on a synthetic jar only.
- Later: WebKit's MPRIS has empty DesktopEntry and one player per web process (S013 to judge);
log::still prints nothing.
S052 — WebKit tuning defaults, background tabs, memory, slow connection (2026-11-14)
- Done: start log
engine tuning: page cache …, memory limit …, cache model …, hardware acceleration …(defaults of D-040 were already in from S050; hardware policy printsAlways, which is what "default" means in WebKitGTK 2.54); DNS prefetching on. Background tabs: WebKitGTK 2.54 has no suspend/freeze call for a web view; a hidden view already getsdocument.hidden, no animation frames and its 10 ms timer about once a second (bg-tabs.txt: raf 0, 21 timer ticks in 21 s). The freeze setting stays a strip flag; its texts now say what WebKit does and that unloading frees memory. - Memory (
tools/mem-run.sh,tests/smoke/tune-mem.txt, six tune tabs, hidden, software GL): Nacre idle PSS 3.0–3.1 GB vs tuneno-page-cache2.34 GB,mem5002.45 GB; web processes are 2.16 GB of it, Nacre's own process 272 MB. Table indocs/engine/engine-comparison.md; datadocs/engine/tune/nacre/. - Slow connection (
tests/smoke/slow.txt+slow/server.py, ~1 Mbit/s, 250 ms latency): DocumentBrowser first 4.3 s, revisit and reload and back from the HTTP cache (back 38 ms, reload 0.85 s, only validators and files without cache headers go to the network); DocumentViewer 5.7 s every time; page cache on gives no gain. D-040 amended: page cache stays off. - Verified:
cargo test85 + webext 1; hidden smokes exit 0: launch, basics, bg-tabs, slow ×3, tune-mem ×4; start log read. - Not done: no real 10-tab list (tune list has six tabs); no visible/real-GPU run;
tc netemnot used (paced server instead); idle CPU varies a lot between runs. - Later: a file without validators or cache headers (like
bare.js) is refetched on every visit, as in any browser.
S059 — Tab lifecycle: stuck tab, views freed, script message handler (2026-11-18)
- Root cause of the stuck tab (reproduced in
stuck.txt): a web page's open question ("Leave this page?" from a Reload or close, or an alert) stayed on the tab when it moved to one of Nacre's pages, with the web view kept hidden behind, so the page kept waiting on it and Reload went to that hidden view. A second stuck state: a shortcut being recorded in settings (capture_key) stayed on after leaving the section/tab, and every shortcut of the window (Ctrl+R/F5 too) was eaten. - Fixes:
Tab::take_web(navigating to nacre://, memory saver, Free memory) detaches + forgets the view, denies/dismisses its open dialog and keeps its back/forward list (HistoryState, WebKit session state); Back from the page builds a new view with that list (View::restore_history, goes to the current entry). Shortcut recording ends when its button isn't drawn in a frame (capture_shown). The tick's 3 s close timeout now only waits for a "Leave this page?" (Tab::close_overdue), not any dialog. - Guard: Reload on a closing tab is ignored with
tab N: Reload ignored, the tab is closing (x s, dialog true). - Views:
Engine::forgetdisconnects and unregisters thenacremessage handler before the content manager can drop; selftest statuslifecycle{views, views_leaked, capture_key}. - Verified:
cargo test88 + webext 1; hiddenstuck.txt(new, offline,pages/chatty.html) andbasics.txtexit 0,grep -c CRITICAL nacre.log= 0 both; shots read. - Not done: the CRITICAL line never showed in a hidden run before the fix either (not reproduced; fix by reading the API); settings wheel scroll had no cause of its own found (the dialog left over the page is the likely one); a real key press of Reload while recording not scripted (status check instead); no visible run.
- Later: when the app is busy at a render,
EguiAreakeeps the previous page rect (egui_area.rsif let Ok(rect)), which could route input to a stale rect.
S060 — Picture in picture three times in a row, keyboard in the PiP window (2026-11-18)
- Reproduce (hidden niri,
pip-loop.txt): enter → exit three times viacmd, Ctrl+Shift+Space and niri closing the window: the PiP window floated and was focused in rounds 1–3 and the view moved each round, so the window-focus loss was not reproduced here (the user's niri config has nodev.nacre.Nacre.Piprule, despite the plan saying it does). - Cause found: inside the PiP window the keyboard sat on the egui overlay (
open_windowgrabs it; every click on the overlay too), never on the page, so Escape did nothing (it became Stop on a window with no tab) and the player's own keys never arrived, in every round. - Fix: Escape in a PiP window ends PiP (
window_key, app.rs); entering PiP gives the keyboard to the page (enter_pip, actions.rs). - Smoke:
tests/smoke/pip-loop.txt+pip-loop-driver.sh(hidden, offline): round 1cmd exitpip, round 2 real Escape, round 3 niri close-window;windows-<n>.jsonhas the PiP window floating and focused. Exit 0;pip.txt(with driver) andpip-return.txtexit 0;cargo test88 + webext 1. - Not done: 🧑 the user trying PiP 3× on YouTube on their screen (deferred overnight, box left unticked); the user's exact steps for "focus goes back" weren't known, so a focus loss specific to the real screen may remain.
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).
- Bookmark flyout stays open after switching tabs and shows the old page's bookmark (S006 keys.txt shot).
- Wikipedia search widget ignores the selftest's Enter (plain forms submit); check with a real keyboard (S006).
- YouTube's result list lays out at zero size; CSS mask-image icons paint as squares (Servo layout, S006).
- System accent: watch caelestia scheme.json / the portal
accent-colorand restyle live (R1-11). - Reader mode, split view, translate, real gamepad rumble (D-002: not planned for now).
- 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).