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

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 15:27:36 -06:00
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
2026-11-13 07:20: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 <[email protected]>
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 <[email protected]>
2026-11-13 03:42:37 -06:00
6c748ba7b0 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
043987a634 S044 (WIP): privacy rules and request policy out of hub.rs
net::privacy (headers, tracking strip, language list) and net::policy
(HubConfig, pure decide() -> Outcome) with tests; Hub::decide is a thin Servo
adapter. Build, 74 tests, smokes launch/basics/input/net-adblock/net-privacy
green. Boxes 3-4 (ViewId, neutral payload types) not done: see the plan's WIP note.

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

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

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

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 15:34:32 -06:00
6a092f950d 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
8257bf90f6 S007: typed download addresses, blocked count reset in the hub, small download sizes, live bridge byte count
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 <[email protected]>
2026-11-12 09:45:19 -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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
2026-11-12 07:41:24 -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 <[email protected]>
2026-11-12 07:05:30 -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 <[email protected]>
2026-11-11 22:49:28 -06:00
444e78426e S017: new tab page elements: clock, shortcuts, Now playing and Weather cards, search pill, three cards on a grid
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 22:17:08 -06:00
7b7e0cec7f S015: Material You foundation: M3 schemes, Outfit, icons, springs, widgets, gallery
Fixes R1-01 (icon glyphs) and R1-02 (clock contrast).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 19:36:53 -06:00
c91795ca69 S005: one painter per window (D-008); PiP in its own web view
All tabs of a window share one offscreen context and so one Servo painter.
Picture in picture loads the page again in a web view with a painter of its
own and seeks the video; the tab resumes from the PiP time on exit. The PiP
video froze because Servo 0.7 stalls a playing video that is seeked and then
play()ed; pip.start now pauses before seeking.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 19:14:32 -06:00
23c6908ca5 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
8b2b2a5655 S003: first launch on Xvfb, smoke harness, epaint glyph panic and quit segfault fixed
- tools/smoke.sh + tests/smoke/{launch,https,restore}.txt: hidden Xvfb run with a throwaway home
- vendor/epaint: render glyphs single-threaded (Servo enables vello_cpu/multithreading), D-006
- App::quit drops every Servo handle before the GL contexts, so Servo shuts down cleanly
- D-005: smoke runs use Xvfb

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 18:01:15 -06:00
d2bb67f4ea S001: first build compiles; fix 5 compile errors in place
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 17:27:07 -06:00
49825b626e 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
e8167c3f4a Nacre on Servo: first complete, reviewed, not yet built version
Everything in Rust on Servo 0.7 (trimmed: no WebXR, WebGPU, multiprocess):
tabs and windows, address bar with suggestions, history, bookmarks and
reading list, downloads with resume and external download managers,
encrypted password vault with autofill, ad blocker (adblock-rust, 22 lists),
VPN through Tor or a proxy and secure DNS via a local bridge proxy,
picture in picture, Discord Rich Presence, media player and visualizer,
spell check, site apps, user scripts and styles, import from other
browsers, gamepads, Web Bluetooth, and every setting of the original Nacre
in a plain egui interface.

Not compiled yet; docs/HANDOFF.md has the first build checklist.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 06:08:36 -06:00