Commit graph Nacre/src/app.rs
Author SHA1 Message Date
f5cb6f76f8 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
38b0fea432 S008: R1-20 per-site memory and permissions enforced (images, sound), restart smoke
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-12 11:18:39 -06:00
e23b452b13 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
6031f9f03c S006: keys, cache, site-doctor smokes; single instance check; view source of file://; timed window requests
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 09:45:19 -06:00
7f43322ee7 S006: mainstream user agent, heavy-web smoke on real sites
Default UA is Servo's in Firefox's exact form (Gecko/20100101, no Servo token),
following Servo's version (inject::mainstream_ua, tested); a custom UA still wins.
tests/smoke/heavy-web.txt (needs internet): DuckDuckGo, Wikipedia, YouTube in one
go (home, search, video, ads, PiP). Selftest waitfor, locate + click @, expect > n.
input.txt checks Enter submits a form and the keys a page sees.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 09:06:29 -06:00
b3bfdb6b28 S006: YouTube loads (HTTP/2 header limit), basics smoke, Escape leaves page full screen
servo-net 0.7.0 keeps hyper's 16 KiB HTTP/2 header list limit; YouTube sends
~19 KiB, so the stream was reset and Servo showed SendRequest. vendor/servo-net
raises it to 256 KiB (D-012).
Escape went to the page only in full screen (inverted check): keys::page_gets_key.
tests/smoke/basics.txt: tabs, navigation, address bar, find, zoom, full screen,
_blank, pop-up, new window. Selftest expect/locate, pagetype {escape}.

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

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

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 07:41:24 -06:00
9d16ffa401 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
8284541e83 S018: new tab backgrounds (shapes, blobs, constellation, waves, dot grid) reacting to the cursor, image/GIF layer, Customize panel, heavier clock, delayed repaints honoured
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 22:49:28 -06:00
6eb090632d 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
07b357deaf 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
d6cdaa3411 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
802a745e78 S005: painter smoke tests; fix chrome blanking after PiP closes
- tests/smoke/painters.txt (5 tabs, switch, resize, PiP, close) and painters-perf.txt (memory, frame
  time, threads with 1/5/15 tabs, idle discard); test pages color.html, video.html, clip.webm.
- selftest: `resize <w> <h>`, `shot <name> pip`, status gets frames (median/max ms), painters, threads.
- Fix: a closing window's egui was destroyed with another window's GL context current, deleting the
  main window's font texture (chrome text/icons blank after PiP). BrowserWindow::destroy() makes its
  own context current first.
- Fix: PiP CSS resets the video's margin (video was shifted down in the PiP frame).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 18:34:37 -06:00
a97abc1711 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
6ebd2d62f9 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
95219c51c4 S001: commit self-test WIP and UI brief
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 17:22:27 -06:00
2d8323a3e0 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