Nacre/docs/FEATURES.md
2026-11-12 21:22:06 -06:00

135 lines
15 KiB
Markdown

# Feature checklist
Every item of the settings screenshot and of the original Nacre's `config.py`, where it lives, and its state.
"Partial" and "engine limit" items say why in the UI too.
## Browser basics
| Feature | Where | State |
|---|---|---|
| Tabs: open, close, reorder by drag, pin, mute, duplicate, move to new window, close others/right | `actions.rs`, `ui/chrome.rs` | verified S006 (basics.txt: open, close, pin, mute, duplicate, move left/right); not checked: drag, move to new window, close others/right |
| Reopen closed tabs, recently closed list | `store/session.rs`, `actions.rs` | verified S006 (basics.txt); recently closed list not checked |
| Windows, incognito (separate process, temporary profile) | `main.rs`, `paths.rs` | verified S006 (new/close window: basics.txt, keys.txt); incognito not run (second process) |
| Address bar: URL or search, suggestions (history, bookmarks, tabs, pages, engine), Alt+Enter new tab | `ui/chrome.rs`, `util::address_to_url` | verified S006 (URL, search: basics.txt; suggestions: chrome.txt); Alt+Enter not checked |
| Back/forward (with history list), reload, hard reload, home | `actions.rs` | verified S006 (back, forward, reload, hard reload, home: basics.txt, keys.txt); history list not checked; "stop" has no Servo API |
| Find in page (count, next/previous, match case) | `inject.rs` FIND_JS, `ui/dialogs.rs` | verified S006 (count, next, previous: basics.txt, keys.txt); match case not checked |
| Zoom per site, Ctrl+wheel | `actions.rs`, settings `web.zoom_sites` | verified S006 (in, out, reset: basics.txt, keys.txt), S008 (per site: saved, back after a restart, applied to a new tab: site-memory*.txt; the tab's zoom now follows the site's value, was stale on new tabs); Ctrl+wheel not checked |
| Full screen (F11 and page fullscreen) | `app.rs` | verified S006 (basics.txt: F11, page request, Escape leaves) |
| Context menu (links, images, media, selection, spelling, page) | `ui/menus.rs` | verified S006 (page menu: input.txt rclick); link/image/media/selection/spelling menus not checked |
| Page dialogs: alert/confirm/prompt, HTTP sign-in, select, colour, file picker, leave page | `ui/dialogs.rs`, `app.rs` | verified S006 (alert, confirm, prompt, select, colour: dialogs.txt); HTTP sign-in, file picker, leave page not checked |
| Pop-ups / target=_blank as tabs, pop-up permission | `app.rs on_create_new` | verified S006 (basics.txt) |
| Single instance (links go to the running browser) | `instance.rs` | verified S006 (basics.txt `launch`: second process hands its link over and exits) |
| Session restore, crash recovery offer | `app.rs`, `store/session.rs` | verified S006 (restore.txt); crash recovery offer not checked |
| Error pages (network, certificate, crash) | `assets/servo/*.html`, `resources.rs` | verified S006 (network error page: keys.txt); certificate and crash pages not checked |
| Developer tools: console + eval, network log, source; Firefox remote debugging | `ui/pages/devtools.rs` | verified S006 (opens for the page: keys.txt shot); console eval, network log not checked |
| View source, save page, save as PDF/PNG (no printing in Servo) | `actions.rs`, `pdf.rs` | verified S006 (view source, file:// fixed: keys.txt); save page / PDF / PNG need a native file dialog, not run |
| QR code for page | `ui/menus.rs` | verified S006 (keys.txt shot) |
| Task manager, free up memory | `ui/pages/misc.rs` | verified S006 (task manager opens: keys.txt); free memory not checked |
| Keyboard shortcuts, rebindable | `keys.rs`, settings | verified S006 (every action by `do` in basics.txt + keys.txt except save page, print, incognito, quit; key parsing unit test); rebinding not checked |
| Gamepads (W3C standard mapping), Web Bluetooth device picker | `app.rs poll_gamepads`, `ui/dialogs.rs` | verified S009 (integ-perf.txt, integ-idle-cpu.sh): `navigator.getGamepads()` exists and lists nothing without a device, idle CPU 0 %. Not checked: a real device (S010 list); rumble reports unsupported |
| Notifications (notify-send or in-app) | `app.rs` | permission asked, remembered, denied/granted to the page verified S008 (site-memory*.txt); showing the notification itself (notify-send) not checked |
## General (screenshot)
| Setting | State |
|---|---|
| Setup (first-run wizard, rerun) | written (`ui/pages/misc.rs welcome`) |
| On startup: New tab / Restore / Home page | written |
| Home page | written |
| Search engine (+ custom engines, suggestions) | written |
| Profiles (list, add, delete, open) | written |
| Spell check (languages, dictionaries downloaded, suggestions, add word) | verified S009 (integ-spell.txt, tiny offline dictionary): wrong words underlined, the context menu on one lists suggestions, choosing one replaces the word. Fixed: the menu got no word in text fields (S009). Not checked: download of a dictionary, add word, several languages, the settings page |
| Keyboard shortcuts | written |
| Import from another browser (Chromium/Firefox families; bookmarks file; passwords CSV) | verified S008 (stores-import.txt on fake Chrome + Firefox profiles in a throwaway home: bookmarks, folders, history, home page, search engine; bookmarks HTML and passwords CSV: stores-lists.txt, stores-vault.txt through the store, not the file dialog); no importer for the old Python Nacre's JSON stores; Windows paths not checked |
| New tab shortcuts and page elements, backgrounds, weather, notes | written (`ui/pages/newtab.rs`) |
| Custom title bar | written (restart) |
| Floating content card | written |
**Stores and pages (S008):** every nacre:// page opens with a non-blank shot (stores-pages.txt + tools/check-shots.py). History
(visits recorded, page lists them, back after a restart), bookmarks (add, folder, bar, Netscape HTML export/import through the
store, page, back after a restart), downloads page lists a finished file (stores-lists*.txt). Settings changed with `set` apply
and reach settings.json (stores-settings.txt: default zoom, vault off/on, theme, search engine, home page, bookmarks bar) and
tapped controls write settings (settings-write.txt, tap position fixed after the privacy page grew). Not checked: the native
file dialogs behind Import/Export, history delete/search from the page, bookmark drag and edit, downloads clear.
## Appearance
Colour source (website/system/palette/custom), fallback, palette swatches, mode, scheme style and contrast, motion,
roundness, websites light/dark, force dark, interface size: written (`theme.rs`, settings page). The Material You look
itself is for the UI pass.
## Toolbar
Navigation / Your Nacre / Tools and actions buttons toggles, bookmarks bar always/new tab/never, bookmark manager:
written.
## Performance
| Setting | State |
|---|---|
| Memory (use, threads, free up) | written (Linux numbers) |
| Low-memory mode auto/on/off | written |
| Energy saver off/battery/always | written |
| Memory saver (unload after) | verified S009 (integ-perf.txt, see Freeze); `status` shows memory 288 MB and 54 threads with two tabs |
| Freeze background tabs | partial: stops drawing; Servo can't pause scripts. Verified S009 (integ-perf.txt): a hidden tab freezes after the set minutes, is unloaded after the discard minutes and loads again when shown |
| Always keep these sites active | written |
| Load restored tabs when opened | written |
| Preload pages | written (DNS warm-up) |
| Smooth scrolling | written (CSS) |
| Still new tab background | written |
| Save data | verified S023 (privacy-net.txt): `Save-Data: on` header (vendored servo-net) plus the JS hint |
| Hardware acceleration | written (software GL, restart) |
## Privacy
| Setting | State |
|---|---|
| VPN: Tor (system, Tor Browser, or started) or custom SOCKS5/HTTP, kill switch while connecting | written (`net/bridge.rs`, `net/tor.rs`); S007 verified the bridge with the VPN off (net-privacy.txt: route Direct, every connection through it, traffic counted live); Tor and proxies never run in tests (user rule), kill switch not checked |
| Privacy mode (+ in incognito) | verified S024 (privacy-mode.txt, privacy-incognito.txt, privacy-net.txt, coveryourtracks.txt): canvas/WebGL/audio/font noise, common screen/CPU/platform/touch/WebGL values, Firefox-style languages and Accept-Language, third-party cookies blocked incl. frames' document.cookie, paused per site, on in incognito; details `docs/engine/privacy-mode.md` |
| Secure DNS (Cloudflare, Quad9, Google, Mullvad, AdGuard, custom) | verified S007 with a custom endpoint on a local stub (net-privacy.txt: names only the stub knows load); the public providers not contacted in tests |
| HTTPS-only mode with fallback prompt and exceptions | verified S007 (net-privacy.txt: upgrade via the `location.replace()` page, certificate warning "Open anyway" (fixed: servo-net patch), fallback prompt + Open anyway, site stays http this session, local addresses never upgraded); "Always for this site" not tapped |
| Site settings (defaults and per-site) | verified S008 (site-memory*.txt, restart): stored per site, applied again after a restart. Enforced: pop-ups, notifications, images (hub blocks image requests), sound (tab muted on load), Servo's own requests, open-other-apps. Shown as "Not available" (Servo 0.7): location (navigator.geolocation never answers), camera, microphone, device list (no navigator.mediaDevices), persistent storage (no navigator.storage), clipboard, JavaScript. Privacy mode is paused per site from the shield menu (S024) |
| Delete browsing data (+ on exit) | written |
| Send Do Not Track and GPC | verified S023 (privacy-net.txt): `DNT: 1` + `Sec-GPC: 1` on every request (vendored servo-net), plus the JS properties |
| Remove tracking parameters | verified S007 (net-privacy.txt: utm_*/fbclid removed, other parameters kept, off keeps all) |
| Block third-party cookies | verified S023 (privacy-net.txt): cross-site requests send and store no cookies (vendored servo-net), same-site subdomains keep theirs, on in privacy mode. `document.cookie` in a cross-site frame: empty (S024, script layer) |
| Google sign-in quirk | written (UA switch + JS) |
| Sites where ad blocking is paused | verified S007 (net-adblock.txt), persisted S008 (site-memory*.txt) |
| Remote debugging, user agent | written |
## Ad blocker
Block ads and trackers, filter engine status + update now, 22 filter lists in groups, your lists, own rules, hide
leftovers (cosmetic incl. generic hiding), animate removal, block YouTube ads, update automatically: written
(`adblock.rs`, `hub.rs`, COSMETIC_JS). Seed lists ship in `assets/filters`.
Verified S007 (net-adblock.txt, offline): seed lists build without network (210k rules); a custom list URL
(local) blocks a script and an image and hides elements by a site and a generic cosmetic rule; pausing for a site
lets everything through; a list that can't be downloaded is reported and the rules stay; per-page blocked count
(fixed: it was reset after the page's first requests were counted). Not checked: the 22 real lists' downloads,
YouTube ad blocking, own rules, removal animation, automatic updates.
## Downloads
Save to, ask where, show when they start, pause/resume (Range), retry, cancel, open/show in folder, external download
managers (AB Download Manager, aria2/Motrix, JDownloader 2, FDM, IDM) with ping status and fallback: written
(`net/download.rs`, `net/dlm.rs`). Downloads are detected by URL type, a header probe, and `<a download>`.
Verified S007 (net-downloads.txt, offline): by file type and by Content-Disposition from links and typed addresses
(fixed: typed addresses skipped detection), save-to folder, pause/resume with Range (file intact), cancel, size of
small files (fixed: showed 0 B), aria2/ABDM/JDownloader stubs and a dummy FDM get the link, fallback to Nacre's
downloader when the manager is down. Not checked: ask where (file dialog), retry, open/show in folder, `<a download>`,
IDM (Windows), a file at an address with no hint (no extension, no "download"-like path), which isn't probed.
## Media
Media button (when playing/always/never), player flyout (art, seek, controls, mute tab/site, PiP), visualizer
(cava / simulated / off), spin artwork, Discord Rich Presence (arRPC/Discord, per-site app IDs, browsing activity,
buttons, paused state): verified S009 (integ-discord.txt + integ-discord-check.sh, fake IPC server): handshake with the Settings app ID, SET_ACTIVITY with title, artist, progress bar, button, paused state and a browsing activity; the media state comes from the page's Media Session. Fixed R4-09: the large image falls back to the origin's /favicon.ico when the page's favicon is data:, http: or long. Not checked: real Discord, per-site IDs, display type, the media flyout, visualizer, mute, PiP (S005). Picture in picture (own always-on-top window; reloads the page in a web view
of its own and seeks the video, page state lost, D-008): verified on Xvfb (S005). Protected content (Widevine): engine
limit, shown as unavailable.
Media Source Extensions (`MediaSource`, `SourceBuffer`; YouTube-style players): S026-S028, vendored crates and patched
gst_mse (DESIGN.md "Media and Media Source Extensions"); verified S028 (mse.txt, mse-player.txt: attach without
blocking, seek inside/outside buffered, rate, ended, decode error, garbage append; WPT media-source, see PROGRESS).
## Passwords and autofill
Encrypted vault (device key or master password, auto-lock, re-ask before showing), save prompt, autofill, strong
password suggestion, addresses and cards, CSV import/export, generator, weak/reused check: written
(`store/vault.rs`, AUTOFILL_JS, `ui/pages/passwords.rs`). Verified S008 (stores-vault.txt + stores-vault-check.sh): save prompt from a local form, autofill of the one saved login, master password (key file removed, wrong password refused, lock empties the vault, no autofill while locked), unlock, CSV export, CSV import (own and Chrome format, duplicates and bad rows skipped), vault.json holds no plain text and is mode 600. Not checked: addresses, cards, generator, weak/reused list, auto-lock timer, re-ask before reveal, the strong password suggestion dropdown.
## Apps
Install site as app (own window, launcher entry), desktop shortcut, user scripts and styles (stand-in for extensions):
verified S008 (stores-apps.txt): .user.js and .user.css installed by address run on matching pages and not on others; install as app writes the launcher entry and the app opens its own window. Not checked: desktop shortcut, uninstall, editing a script, disable toggle, @exclude, run-at start/idle.
## About
Version, engine, colour, profile paths, update repository, automatic and manual update check: verified S009 (integ-updates.txt, local fake Forgejo API): the notice says "Version 9.9.9 is available" and nothing is downloaded. Not checked: GitHub/GitLab address forms by smoke (unit tests only), the Get it button.
(`updates.rs`).