Merge branch 'main' into s022-mse-proto
# Conflicts: # CLAUDE.md
This commit is contained in:
commit
3d329cafbc
72 changed files with 3103 additions and 153 deletions
|
|
@ -65,7 +65,7 @@ Never modify: `~/Documents/Apps/Nacre` (the original Python Nacre, reference onl
|
|||
| `nice cargo build --release -j 2` | compile check, produces `target/release/nacre` | now |
|
||||
| `nice cargo test --release -j 2` | unit tests (44, ~16 s test-profile build then <1 s run; shares the S001 build) (util, settings, history, bookmarks, permissions, vault, dns, bridge loopback, download, adblock, keys, scripts, updates, inject, hub, theme, ui::widgets input, ui::paint, ui::pages::newtab) | first successful build; not alongside a build |
|
||||
| `src/selftest.rs` | in-app self test: `NACRE_SCRIPT=<file>` runs script commands (listed at its top) | now |
|
||||
| `tools/smoke.sh <script> [outdir]` | smoke run on a hidden Xvfb display with a throwaway home and software GL; outdir (default `target/smoke/<name>-<time>`) gets `nacre.log`, `selftest.log`, `<shot>.png`, `<status>.json`, `home/`; exits non-zero on crash, panic, no `status done` or a failed `assert <js>`. Scripts in `tests/smoke/` (`launch.txt` offline, `https.txt` needs internet, `restore.txt` with `SMOKE_HOME=<launch outdir>/home`, `chrome.txt` chrome and every flyout dark and light, offline; `colours.txt` colours after welcome and site colour vs internal pages, hidden `SMOKE_SIZE=1280x1100`; `input.txt` real clicks, typing, right click, wheel on a web page, offline; `basics.txt` tabs, navigation, find, zoom, full screen, pop-ups, offline; `heavy-web.txt` DuckDuckGo, Wikipedia, YouTube, needs internet, `SMOKE_TIMEOUT=900`; `keys.txt` every shortcut action, offline; `site-doctor.txt` Google sign-in, captchas, Reddit, GitHub, needs internet; `cache.txt` HTTP cache, offline, start `python3 tests/smoke/cache/server.py &` first; selftest `launch <args>` checks single instance); header documents env vars and commands. `SMOKE_VISIBLE=1` shows the run on the user's screen (DP-1, real GPU, niri tiles the window so shots are narrower); use it whenever the user is watching (D-009). Read the PNGs | now (S003) |
|
||||
| `tools/smoke.sh <script> [outdir]` | smoke run on a hidden Xvfb display with a throwaway home and software GL; outdir (default `target/smoke/<name>-<time>`) gets `nacre.log`, `selftest.log`, `<shot>.png`, `<status>.json`, `home/`; exits non-zero on crash, panic, no `status done` or a failed `assert <js>`. Scripts in `tests/smoke/` (`launch.txt` offline, `https.txt` needs internet, `restore.txt` with `SMOKE_HOME=<launch outdir>/home`, `chrome.txt` chrome and every flyout dark and light, offline; `colours.txt` colours after welcome and site colour vs internal pages, hidden `SMOKE_SIZE=1280x1100`; `input.txt` real clicks, typing, right click, wheel on a web page, offline; `basics.txt` tabs, navigation, find, zoom, full screen, pop-ups, offline; `heavy-web.txt` DuckDuckGo, Wikipedia, YouTube, needs internet, `SMOKE_TIMEOUT=900`; `keys.txt` every shortcut action, offline; `privacy-net.txt` DNT/GPC/Save-Data headers and third-party cookies on a loopback server, offline, start `python3 tests/smoke/net/server.py &` first; `site-doctor.txt` Google sign-in, captchas, Reddit, GitHub, needs internet; `cache.txt` HTTP cache, offline, start `python3 tests/smoke/cache/server.py &` first; selftest `launch <args>` checks single instance; `cookies.txt` → `cookies-restart.txt` → `cookies-cleared.txt` encrypted cookies across restarts with `SMOKE_KEYRING=1` (own throwaway GNOME Keyring + bus) and `SMOKE_HOME`, `cookies-nokeyring.txt` without, server.py first); header documents env vars and commands. `SMOKE_VISIBLE=1` shows the run on the user's screen (DP-1, real GPU, niri tiles the window so shots are narrower); use it whenever the user is watching (D-009). Read the PNGs | now (S003) |
|
||||
| `nacre://gallery` + `SMOKE_SIZE=1400x2800 tools/smoke.sh tests/smoke/gallery.txt` | every design token and widget, dark and light (+ new tab and settings shots); read the PNGs | now (S015) |
|
||||
| `SMOKE_SIZE=1400x1200 tools/smoke.sh tests/smoke/newtab.txt` | new tab page dark/light, nothing playing and a video playing, weather failed state, tall/narrow/phone widths (offline); `tests/smoke/newtab-weather.txt` shoots the real weather card (needs internet); read the PNGs | now (S017) |
|
||||
| `SMOKE_SIZE=1400x900 tools/smoke.sh tests/smoke/backgrounds.txt` | every new tab background with the pointer, Customize panel dark/light, image + blur, GIF frames; `perf-*-a/b.json` `frames` (median/max draw ms, `drawn` count) per background at Lots/Fast, hidden tab, still, Motion off. Selftest `pointer x y`, `customize`; `@PAGESDIR@` = path of tests/smoke/pages | now (S018) |
|
||||
|
|
@ -75,6 +75,7 @@ Never modify: `~/Documents/Apps/Nacre` (the original Python Nacre, reference onl
|
|||
| `SMOKE_TIMEOUT=400 tools/smoke.sh tests/smoke/mse.txt` + `tests/smoke/mse-leak-check.sh <outdir>` | MSE: chunk-appended fMP4, WebM and split A/V play; `mse-spec.html` spec cases (attach/detach, duration, buffered/seekable, remove, removeSourceBuffer, changeType, abort, reopen, sequence, leak); the leak check reads nacre.log (offline). `NACRE_DOM_MEDIA_SOURCE_ENABLED=0 tools/smoke.sh tests/smoke/mse-off.txt`: the switch. Branch `s022-mse-proto` only (docs/engine/mse-spike.md) | S022, S027 |
|
||||
| `tools/gst-mse.sh [test]` | builds Nacre's patched gst_mse library and `mse` plugin (vendor/gst-mse) into `target/gst-mse/` (needed before running a build that uses MSE); `test` also runs the C tests in `tests/gst-mse/` | now (S026, branch s022-mse-proto) |
|
||||
| `tools/wpt-mse.sh [outdir] [file ...]` | WPT media-source subset (60 files) in a hidden run; first run sparse-clones WPT at a pinned commit into `target/wpt` (needs internet once); prints subtest pass counts, results in `<outdir>/wpt/results.json`; ~45 min | S027 |
|
||||
| `tools/smoke.sh tests/smoke/privacy-mode.txt` (+ `SMOKE_ARGS=--incognito … privacy-incognito.txt`) | privacy mode: `pages/fingerprint.html` read off/on, `fp-off.json`/`fp-on.json` + shots (offline); `privacy-net.txt` (needs `tests/smoke/net/server.py`) frame cookies, per-site pause, Accept-Language; `SMOKE_TIMEOUT=700 … coveryourtracks.txt` EFF's test off/on (internet, direct). Selftest `save <name> <js>` writes a JS string result to `<name>.json`; `SMOKE_ARGS` passes browser arguments | now (S024) |
|
||||
| `python tools/icons.py` | rebuilds the icon font subset and `src/ui/icons.rs` from `tools/icons.txt` (needs fontTools and Arch's ttf-material-symbols-variable) | now (S015) |
|
||||
| appimagetool, wine + Inno Setup, VM "Windows 10" | packaging and Windows checks | see the user's global CLAUDE.md "Building" |
|
||||
|
||||
|
|
|
|||
626
Cargo.lock
generated
626
Cargo.lock
generated
|
|
@ -106,6 +106,17 @@ dependencies = [
|
|||
"inout 0.2.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "aes"
|
||||
version = "0.8.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"cipher 0.4.4",
|
||||
"cpufeatures 0.2.17",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "aes"
|
||||
version = "0.9.3"
|
||||
|
|
@ -125,7 +136,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "7f2b8006a0c83f52b62ba44a97b58bf76fe2f70a329e588f67f89691d93d498f"
|
||||
dependencies = [
|
||||
"aead 0.6.1",
|
||||
"aes",
|
||||
"aes 0.9.3",
|
||||
"cipher 0.5.2",
|
||||
"ctr",
|
||||
"ctutils",
|
||||
|
|
@ -139,7 +150,7 @@ version = "0.3.1"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "41ac571010bd60765c56085a4f1d412012a9be2663b1a2f2b19b49318653fd0d"
|
||||
dependencies = [
|
||||
"aes",
|
||||
"aes 0.9.3",
|
||||
"const-oid",
|
||||
"zeroize",
|
||||
]
|
||||
|
|
@ -430,6 +441,30 @@ dependencies = [
|
|||
"stable_deref_trait",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "async-broadcast"
|
||||
version = "0.7.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532"
|
||||
dependencies = [
|
||||
"event-listener",
|
||||
"event-listener-strategy",
|
||||
"futures-core",
|
||||
"pin-project-lite",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "async-channel"
|
||||
version = "2.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2"
|
||||
dependencies = [
|
||||
"concurrent-queue",
|
||||
"event-listener-strategy",
|
||||
"futures-core",
|
||||
"pin-project-lite",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "async-compression"
|
||||
version = "0.4.48"
|
||||
|
|
@ -442,6 +477,53 @@ dependencies = [
|
|||
"tokio",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "async-io"
|
||||
version = "2.6.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
"cfg-if",
|
||||
"concurrent-queue",
|
||||
"futures-io",
|
||||
"futures-lite",
|
||||
"parking",
|
||||
"polling",
|
||||
"rustix 1.1.5",
|
||||
"slab",
|
||||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "async-lock"
|
||||
version = "3.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0876700b0d007ad25d5508865a4259c3af9af6d296bf663a0d586d0bc3369f6f"
|
||||
dependencies = [
|
||||
"event-listener",
|
||||
"event-listener-strategy",
|
||||
"pin-project-lite",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "async-process"
|
||||
version = "2.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"
|
||||
dependencies = [
|
||||
"async-channel",
|
||||
"async-io",
|
||||
"async-lock",
|
||||
"async-signal",
|
||||
"async-task",
|
||||
"blocking",
|
||||
"cfg-if",
|
||||
"event-listener",
|
||||
"futures-lite",
|
||||
"rustix 1.1.5",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "async-recursion"
|
||||
version = "1.1.1"
|
||||
|
|
@ -453,6 +535,30 @@ dependencies = [
|
|||
"syn 2.0.119",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "async-signal"
|
||||
version = "0.2.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485"
|
||||
dependencies = [
|
||||
"async-io",
|
||||
"async-lock",
|
||||
"atomic-waker",
|
||||
"cfg-if",
|
||||
"futures-core",
|
||||
"futures-io",
|
||||
"rustix 1.1.5",
|
||||
"signal-hook-registry",
|
||||
"slab",
|
||||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "async-task"
|
||||
version = "4.7.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
|
||||
|
||||
[[package]]
|
||||
name = "async-trait"
|
||||
version = "0.1.92"
|
||||
|
|
@ -701,6 +807,15 @@ dependencies = [
|
|||
"zeroize",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "block-padding"
|
||||
version = "0.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a8894febbff9f758034a5b8e12d87918f56dfc64a8e1fe757d65e29041538d93"
|
||||
dependencies = [
|
||||
"generic-array",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "block-padding"
|
||||
version = "0.4.2"
|
||||
|
|
@ -728,6 +843,19 @@ dependencies = [
|
|||
"objc2 0.6.4",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "blocking"
|
||||
version = "1.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa"
|
||||
dependencies = [
|
||||
"async-channel",
|
||||
"async-task",
|
||||
"futures-io",
|
||||
"futures-lite",
|
||||
"piper",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bluez-async"
|
||||
version = "0.9.0"
|
||||
|
|
@ -950,6 +1078,15 @@ dependencies = [
|
|||
"wayland-client",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cbc"
|
||||
version = "0.1.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "26b52a9543ae338f279b96b0b9fed9c8093744685043739079ce85cd58f289a6"
|
||||
dependencies = [
|
||||
"cipher 0.4.4",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cbc"
|
||||
version = "0.2.1"
|
||||
|
|
@ -1671,6 +1808,24 @@ dependencies = [
|
|||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dbus-secret-service"
|
||||
version = "4.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "708b509edf7889e53d7efb0ffadd994cc6c2345ccb62f55cfd6b0682165e4fa6"
|
||||
dependencies = [
|
||||
"aes 0.8.4",
|
||||
"block-padding 0.3.3",
|
||||
"cbc 0.1.2",
|
||||
"dbus",
|
||||
"fastrand",
|
||||
"hkdf 0.12.4",
|
||||
"num",
|
||||
"once_cell",
|
||||
"sha2 0.10.9",
|
||||
"zeroize",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dbus-tokio"
|
||||
version = "0.7.6"
|
||||
|
|
@ -2073,7 +2228,7 @@ dependencies = [
|
|||
"digest 0.11.3",
|
||||
"ff",
|
||||
"group",
|
||||
"hkdf",
|
||||
"hkdf 0.13.0",
|
||||
"hybrid-array",
|
||||
"pem-rfc7468",
|
||||
"pkcs8",
|
||||
|
|
@ -2137,6 +2292,33 @@ dependencies = [
|
|||
"simdutf8",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "endi"
|
||||
version = "1.1.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099"
|
||||
|
||||
[[package]]
|
||||
name = "enumflags2"
|
||||
version = "0.7.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef"
|
||||
dependencies = [
|
||||
"enumflags2_derive",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "enumflags2_derive"
|
||||
version = "0.7.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.119",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "enumn"
|
||||
version = "0.1.14"
|
||||
|
|
@ -2263,6 +2445,26 @@ dependencies = [
|
|||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "event-listener"
|
||||
version = "5.4.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2"
|
||||
dependencies = [
|
||||
"parking",
|
||||
"pin-project-lite",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "event-listener-strategy"
|
||||
version = "0.5.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"
|
||||
dependencies = [
|
||||
"event-listener",
|
||||
"pin-project-lite",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "exr"
|
||||
version = "1.74.2"
|
||||
|
|
@ -2573,6 +2775,19 @@ version = "0.3.34"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
|
||||
|
||||
[[package]]
|
||||
name = "futures-lite"
|
||||
version = "2.6.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad"
|
||||
dependencies = [
|
||||
"fastrand",
|
||||
"futures-core",
|
||||
"futures-io",
|
||||
"parking",
|
||||
"pin-project-lite",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "futures-macro"
|
||||
version = "0.3.34"
|
||||
|
|
@ -2724,7 +2939,7 @@ dependencies = [
|
|||
"libc",
|
||||
"libudev-sys",
|
||||
"log",
|
||||
"nix",
|
||||
"nix 0.31.3",
|
||||
"objc2-core-foundation",
|
||||
"objc2-io-kit",
|
||||
"uuid",
|
||||
|
|
@ -3364,13 +3579,31 @@ version = "0.4.3"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
|
||||
|
||||
[[package]]
|
||||
name = "hkdf"
|
||||
version = "0.12.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7"
|
||||
dependencies = [
|
||||
"hmac 0.12.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hkdf"
|
||||
version = "0.13.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4aaa26c720c68b866f2c96ef5c1264b3e6f473fe5d4ce61cd44bbe913e553018"
|
||||
dependencies = [
|
||||
"hmac",
|
||||
"hmac 0.13.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hmac"
|
||||
version = "0.12.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
|
||||
dependencies = [
|
||||
"digest 0.10.7",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -4077,6 +4310,7 @@ version = "0.1.4"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01"
|
||||
dependencies = [
|
||||
"block-padding 0.3.3",
|
||||
"generic-array",
|
||||
]
|
||||
|
||||
|
|
@ -4086,7 +4320,7 @@ version = "0.2.2"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4250ce6452e92010fdf7268ccc5d14faa80bb12fc741938534c58f16804e03c7"
|
||||
dependencies = [
|
||||
"block-padding",
|
||||
"block-padding 0.4.2",
|
||||
"hybrid-array",
|
||||
]
|
||||
|
||||
|
|
@ -4340,6 +4574,20 @@ dependencies = [
|
|||
"unicode-segmentation",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "keyring"
|
||||
version = "3.6.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "eebcc3aff044e5944a8fbaf69eb277d11986064cba30c468730e8b9909fb551c"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
"dbus-secret-service",
|
||||
"log",
|
||||
"secret-service",
|
||||
"windows-sys 0.60.2",
|
||||
"zeroize",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "khronos_api"
|
||||
version = "3.1.0"
|
||||
|
|
@ -4594,6 +4842,15 @@ dependencies = [
|
|||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "memoffset"
|
||||
version = "0.9.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "mime"
|
||||
version = "0.3.17"
|
||||
|
|
@ -4919,6 +5176,7 @@ dependencies = [
|
|||
"http",
|
||||
"image",
|
||||
"keyboard-types",
|
||||
"keyring",
|
||||
"libc",
|
||||
"log",
|
||||
"material-colors",
|
||||
|
|
@ -4930,6 +5188,7 @@ dependencies = [
|
|||
"serde",
|
||||
"serde_json",
|
||||
"servo",
|
||||
"servo-net",
|
||||
"spellbook",
|
||||
"ureq",
|
||||
"url",
|
||||
|
|
@ -4972,6 +5231,19 @@ version = "1.0.6"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
|
||||
|
||||
[[package]]
|
||||
name = "nix"
|
||||
version = "0.29.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
|
||||
dependencies = [
|
||||
"bitflags 2.13.2",
|
||||
"cfg-if",
|
||||
"cfg_aliases",
|
||||
"libc",
|
||||
"memoffset",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nix"
|
||||
version = "0.31.3"
|
||||
|
|
@ -5045,6 +5317,20 @@ version = "0.3.0"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8"
|
||||
|
||||
[[package]]
|
||||
name = "num"
|
||||
version = "0.4.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"
|
||||
dependencies = [
|
||||
"num-bigint",
|
||||
"num-complex",
|
||||
"num-integer",
|
||||
"num-iter",
|
||||
"num-rational",
|
||||
"num-traits",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "num-bigint"
|
||||
version = "0.4.8"
|
||||
|
|
@ -5091,6 +5377,16 @@ dependencies = [
|
|||
"num-traits",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "num-iter"
|
||||
version = "0.1.46"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b"
|
||||
dependencies = [
|
||||
"num-integer",
|
||||
"num-traits",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "num-rational"
|
||||
version = "0.4.2"
|
||||
|
|
@ -5660,6 +5956,16 @@ dependencies = [
|
|||
"crossbeam-channel",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ordered-stream"
|
||||
version = "0.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
|
||||
dependencies = [
|
||||
"futures-core",
|
||||
"pin-project-lite",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "os_pipe"
|
||||
version = "1.2.3"
|
||||
|
|
@ -5720,6 +6026,12 @@ dependencies = [
|
|||
"sha2 0.11.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "parking"
|
||||
version = "2.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
|
||||
|
||||
[[package]]
|
||||
name = "parking_lot"
|
||||
version = "0.12.5"
|
||||
|
|
@ -5940,6 +6252,17 @@ version = "0.2.17"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
||||
|
||||
[[package]]
|
||||
name = "piper"
|
||||
version = "0.2.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"
|
||||
dependencies = [
|
||||
"atomic-waker",
|
||||
"fastrand",
|
||||
"futures-io",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pkcs1"
|
||||
version = "0.8.0-rc.4"
|
||||
|
|
@ -6291,13 +6614,24 @@ version = "5.3.0"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
|
||||
|
||||
[[package]]
|
||||
name = "rand"
|
||||
version = "0.8.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"rand_chacha 0.3.1",
|
||||
"rand_core 0.6.4",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rand"
|
||||
version = "0.9.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
|
||||
dependencies = [
|
||||
"rand_chacha",
|
||||
"rand_chacha 0.9.0",
|
||||
"rand_core 0.9.5",
|
||||
]
|
||||
|
||||
|
|
@ -6312,6 +6646,16 @@ dependencies = [
|
|||
"rand_core 0.10.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rand_chacha"
|
||||
version = "0.3.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
|
||||
dependencies = [
|
||||
"ppv-lite86",
|
||||
"rand_core 0.6.4",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rand_chacha"
|
||||
version = "0.9.0"
|
||||
|
|
@ -6374,7 +6718,7 @@ dependencies = [
|
|||
"paste",
|
||||
"profiling",
|
||||
"rand 0.9.5",
|
||||
"rand_chacha",
|
||||
"rand_chacha 0.9.0",
|
||||
"simd_helpers",
|
||||
"thiserror 2.0.21",
|
||||
"v_frame",
|
||||
|
|
@ -6579,7 +6923,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "b4a459cddafb3fe76b31fd8f1108007566c40301feb64dc7b54656eb7388172b"
|
||||
dependencies = [
|
||||
"crypto-bigint",
|
||||
"hmac",
|
||||
"hmac 0.13.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -6943,6 +7287,25 @@ dependencies = [
|
|||
"zeroize",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "secret-service"
|
||||
version = "4.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e4d35ad99a181be0a60ffcbe85d680d98f87bdc4d7644ade319b87076b9dbfd4"
|
||||
dependencies = [
|
||||
"aes 0.8.4",
|
||||
"cbc 0.1.2",
|
||||
"futures-util",
|
||||
"generic-array",
|
||||
"hkdf 0.12.4",
|
||||
"num",
|
||||
"once_cell",
|
||||
"rand 0.8.8",
|
||||
"serde",
|
||||
"sha2 0.10.9",
|
||||
"zbus",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "security-framework"
|
||||
version = "3.7.0"
|
||||
|
|
@ -7063,6 +7426,17 @@ dependencies = [
|
|||
"zmij",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_repr"
|
||||
version = "0.1.21"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 3.0.4",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_spanned"
|
||||
version = "1.1.1"
|
||||
|
|
@ -8113,6 +8487,7 @@ dependencies = [
|
|||
"sea-query",
|
||||
"sea-query-rusqlite",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"servo-base",
|
||||
"servo-config",
|
||||
"servo-devtools-traits",
|
||||
|
|
@ -8317,7 +8692,7 @@ name = "servo-script"
|
|||
version = "0.7.0"
|
||||
dependencies = [
|
||||
"accesskit 0.24.0",
|
||||
"aes",
|
||||
"aes 0.9.3",
|
||||
"aes-gcm",
|
||||
"aes-kw",
|
||||
"app_units",
|
||||
|
|
@ -8332,7 +8707,7 @@ dependencies = [
|
|||
"brotli",
|
||||
"buf-read-ext",
|
||||
"bytes",
|
||||
"cbc",
|
||||
"cbc 0.2.1",
|
||||
"chacha20poly1305 0.11.0",
|
||||
"chardetng",
|
||||
"chrono",
|
||||
|
|
@ -8354,7 +8729,7 @@ dependencies = [
|
|||
"flate2",
|
||||
"glow",
|
||||
"headers",
|
||||
"hkdf",
|
||||
"hkdf 0.13.0",
|
||||
"html5ever",
|
||||
"http",
|
||||
"httparse",
|
||||
|
|
@ -9810,9 +10185,21 @@ checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
|
|||
dependencies = [
|
||||
"log",
|
||||
"pin-project-lite",
|
||||
"tracing-attributes",
|
||||
"tracing-core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tracing-attributes"
|
||||
version = "0.1.31"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.119",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tracing-core"
|
||||
version = "0.1.36"
|
||||
|
|
@ -9905,6 +10292,17 @@ dependencies = [
|
|||
"ohos-sys-opaque-types",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "uds_windows"
|
||||
version = "1.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
|
||||
dependencies = [
|
||||
"memoffset",
|
||||
"tempfile",
|
||||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "uluru"
|
||||
version = "3.1.0"
|
||||
|
|
@ -10816,7 +11214,25 @@ version = "0.52.0"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
||||
dependencies = [
|
||||
"windows-targets",
|
||||
"windows-targets 0.52.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "windows-sys"
|
||||
version = "0.59.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
|
||||
dependencies = [
|
||||
"windows-targets 0.52.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "windows-sys"
|
||||
version = "0.60.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
|
||||
dependencies = [
|
||||
"windows-targets 0.53.5",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -10834,14 +11250,31 @@ version = "0.52.6"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
||||
dependencies = [
|
||||
"windows_aarch64_gnullvm",
|
||||
"windows_aarch64_msvc",
|
||||
"windows_i686_gnu",
|
||||
"windows_i686_gnullvm",
|
||||
"windows_i686_msvc",
|
||||
"windows_x86_64_gnu",
|
||||
"windows_x86_64_gnullvm",
|
||||
"windows_x86_64_msvc",
|
||||
"windows_aarch64_gnullvm 0.52.6",
|
||||
"windows_aarch64_msvc 0.52.6",
|
||||
"windows_i686_gnu 0.52.6",
|
||||
"windows_i686_gnullvm 0.52.6",
|
||||
"windows_i686_msvc 0.52.6",
|
||||
"windows_x86_64_gnu 0.52.6",
|
||||
"windows_x86_64_gnullvm 0.52.6",
|
||||
"windows_x86_64_msvc 0.52.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "windows-targets"
|
||||
version = "0.53.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
|
||||
dependencies = [
|
||||
"windows-link",
|
||||
"windows_aarch64_gnullvm 0.53.1",
|
||||
"windows_aarch64_msvc 0.53.1",
|
||||
"windows_i686_gnu 0.53.1",
|
||||
"windows_i686_gnullvm 0.53.1",
|
||||
"windows_i686_msvc 0.53.1",
|
||||
"windows_x86_64_gnu 0.53.1",
|
||||
"windows_x86_64_gnullvm 0.53.1",
|
||||
"windows_x86_64_msvc 0.53.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -10859,48 +11292,96 @@ version = "0.52.6"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
||||
|
||||
[[package]]
|
||||
name = "windows_aarch64_gnullvm"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
|
||||
|
||||
[[package]]
|
||||
name = "windows_aarch64_msvc"
|
||||
version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
||||
|
||||
[[package]]
|
||||
name = "windows_aarch64_msvc"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_gnu"
|
||||
version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_gnu"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_gnullvm"
|
||||
version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_gnullvm"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_msvc"
|
||||
version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_msvc"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_gnu"
|
||||
version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_gnu"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_gnullvm"
|
||||
version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_gnullvm"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_msvc"
|
||||
version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_msvc"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
|
||||
|
||||
[[package]]
|
||||
name = "winit"
|
||||
version = "0.30.13"
|
||||
|
|
@ -11251,6 +11732,16 @@ version = "0.3.11"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "163b33ed8786455e2fa5d72f554057ce3f3182425434f756cd39c99839d88e23"
|
||||
|
||||
[[package]]
|
||||
name = "xdg-home"
|
||||
version = "1.3.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ec1cdab258fb55c0da61328dc52c8764709b249011b2cad0454c72f0bf10a1f6"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"windows-sys 0.59.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "xkbcommon-dl"
|
||||
version = "0.4.2"
|
||||
|
|
@ -11348,6 +11839,62 @@ dependencies = [
|
|||
"rayon",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zbus"
|
||||
version = "4.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bb97012beadd29e654708a0fdb4c84bc046f537aecfde2c3ee0a9e4b4d48c725"
|
||||
dependencies = [
|
||||
"async-broadcast",
|
||||
"async-process",
|
||||
"async-recursion",
|
||||
"async-trait",
|
||||
"enumflags2",
|
||||
"event-listener",
|
||||
"futures-core",
|
||||
"futures-sink",
|
||||
"futures-util",
|
||||
"hex 0.4.3",
|
||||
"nix 0.29.0",
|
||||
"ordered-stream",
|
||||
"rand 0.8.8",
|
||||
"serde",
|
||||
"serde_repr",
|
||||
"sha1 0.10.6",
|
||||
"static_assertions",
|
||||
"tracing",
|
||||
"uds_windows",
|
||||
"windows-sys 0.52.0",
|
||||
"xdg-home",
|
||||
"zbus_macros",
|
||||
"zbus_names",
|
||||
"zvariant",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zbus_macros"
|
||||
version = "4.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "267db9407081e90bbfa46d841d3cbc60f59c0351838c4bc65199ecd79ab1983e"
|
||||
dependencies = [
|
||||
"proc-macro-crate",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.119",
|
||||
"zvariant_utils",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zbus_names"
|
||||
version = "3.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4b9b1fef7d021261cc16cba64c351d291b715febe0fa10dc3a443ac5a5022e6c"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"static_assertions",
|
||||
"zvariant",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zeitstempel"
|
||||
version = "0.2.2"
|
||||
|
|
@ -11513,3 +12060,40 @@ checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296"
|
|||
dependencies = [
|
||||
"zune-core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zvariant"
|
||||
version = "4.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2084290ab9a1c471c38fc524945837734fbf124487e105daec2bb57fd48c81fe"
|
||||
dependencies = [
|
||||
"endi",
|
||||
"enumflags2",
|
||||
"serde",
|
||||
"static_assertions",
|
||||
"zvariant_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zvariant_derive"
|
||||
version = "4.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "73e2ba546bda683a90652bac4a279bc146adad1386f25379cf73200d2002c449"
|
||||
dependencies = [
|
||||
"proc-macro-crate",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.119",
|
||||
"zvariant_utils",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zvariant_utils"
|
||||
version = "2.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c51bcff7cc3dbb5055396bcf774748c3dab426b4b8659046963523cee4808340"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.119",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -47,6 +47,9 @@ rustls = { version = "0.23", default-features = false, features = ["aws_lc_rs",
|
|||
content-security-policy = "0.9"
|
||||
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "ico", "webp", "gif", "bmp"] }
|
||||
log = "0.4"
|
||||
# The vendored servo-net (see [patch.crates-io]): Nacre sets request headers and third-party cookie blocking
|
||||
# through its `nacre` module (S023).
|
||||
servo-net = "=0.7.0"
|
||||
|
||||
# Ad blocking
|
||||
adblock = { version = "0.13.5", default-features = false, features = ["embedded-domain-resolver", "full-regex-handling"] }
|
||||
|
|
@ -65,6 +68,8 @@ base64 = "0.22"
|
|||
chacha20poly1305 = "0.10"
|
||||
argon2 = "0.5"
|
||||
getrandom = "0.3"
|
||||
# Cookie key in the OS keyring (S025, D-019): Secret Service over libdbus on Linux, Credential Manager on Windows
|
||||
keyring = { version = "3.6", features = ["sync-secret-service", "crypto-rust", "windows-native"] }
|
||||
|
||||
# Gamepads (Servo gets gamepad input from the embedder)
|
||||
gilrs = "0.11"
|
||||
|
|
@ -93,7 +98,8 @@ opt-level = 2
|
|||
# epaint 0.37.0 panics when Servo's canvas enables vello_cpu/multithreading; the vendored copy renders glyphs
|
||||
# single-threaded (vendor/epaint/src/text/font_face.rs, end of file). Drop when egui ships a fix.
|
||||
# servo-net 0.7.0 keeps hyper's 16 KiB HTTP/2 header limit, which breaks YouTube; the vendored copy raises it
|
||||
# (vendor/servo-net/connector.rs, create_http_client). Drop when Servo sets it.
|
||||
# (vendor/servo-net/connector.rs, create_http_client). Drop when Servo sets it. Every servo-net patch is listed in
|
||||
# docs/DESIGN.md "Vendored servo-net patches".
|
||||
[patch.crates-io]
|
||||
epaint = { path = "vendor/epaint" }
|
||||
servo-net = { path = "vendor/servo-net" }
|
||||
|
|
|
|||
3
PLAN.md
3
PLAN.md
|
|
@ -11,7 +11,8 @@ About 19k lines written across storage, networking, ad blocker, media, importer,
|
|||
2. **Verify** — run the unit tests, smoke test offscreen (page renders, tabs, settings), check the shared-GL painter question; fix what breaks.
|
||||
3. **Gaps** — work through `docs/REVIEW.md`, fix the user's review items, add MPRIS media keys (other candidates deferred, D-002).
|
||||
4. **UI redesign** — Material You (tonal-spot schemes, spring motion, expressive shapes) and the animated new tab page per `docs/UI-BRIEF.md`, using the `app-taste` skill. Starts only after the framework works.
|
||||
5. Packaging and release (Linux AppImage/tar.gz, Windows installer and zip) when the user asks.
|
||||
5. **Polish pass** (`Plans/07 Polish pass`, input `docs/review/phase5.md`) — the crash, load speed, SVG/masks, small fixes, flyouts and context menu, custom download manager, a DevTools window, motion rules, a little-things sweep and site passes; ends with the phase 5 review (S042).
|
||||
6. Packaging and release (Linux AppImage/tar.gz, Windows installer and zip) when the user asks.
|
||||
|
||||
Each of phases 1–4 ends with a user review plan (D-003).
|
||||
|
||||
|
|
|
|||
|
|
@ -11,14 +11,14 @@ Verify Discord Rich Presence, media session and visualizer, spell check, update
|
|||
- the module of each feature as needed
|
||||
|
||||
## Steps
|
||||
- [ ] Discord: fake IPC server on a temp socket (`XDG_RUNTIME_DIR` throwaway) that logs frames; check handshake and activity updates from a local media page
|
||||
- [ ] Media: a local page with `<audio>`/`<video>` (bundled test file); check now-playing data, mute, PiP, visualizer levels (simulated if no cava)
|
||||
- [ ] Spell check: misspelled word in a textarea gets suggestions in the context menu
|
||||
- [ ] Updates: point the update URL at a local JSON file; check the notice and that nothing downloads automatically
|
||||
- [ ] Gamepad: check it enumerates without a device and doesn't spin the CPU; single instance: second launch forwards a URL
|
||||
- [ ] Performance: freeze/discard idle tabs and memory saver numbers; mark FEATURES rows verified/broken
|
||||
- [ ] R4-09 Discord site icon: `icon_url` in `src/discord.rs` (https image/favicon, else the origin's /favicon.ico) is written, **not compiled yet**; build, run `nice cargo test --release -j 2 icon_prefers`, see the icon in the fake-IPC `SET_ACTIVITY` frame (`assets.large_image`), user confirms in real Discord; app ID stays in Settings, never in code
|
||||
- [ ] PROGRESS entry, INDEX line, commit `S009: …` and push
|
||||
- [x] Discord: fake IPC server on a temp socket (`XDG_RUNTIME_DIR` throwaway) that logs frames; check handshake and activity updates from a local media page
|
||||
- [x] Media: a local page with `<audio>`/`<video>` (bundled test file); check now-playing data, mute, PiP, visualizer levels (simulated if no cava)
|
||||
- [x] Spell check: misspelled word in a textarea gets suggestions in the context menu
|
||||
- [x] Updates: point the update URL at a local JSON file; check the notice and that nothing downloads automatically
|
||||
- [x] Gamepad: check it enumerates without a device and doesn't spin the CPU; single instance: second launch forwards a URL
|
||||
- [x] Performance: freeze/discard idle tabs and memory saver numbers; mark FEATURES rows verified/broken
|
||||
- [x] R4-09 Discord site icon: `icon_url` in `src/discord.rs` (https image/favicon, else the origin's /favicon.ico) is written, **not compiled yet**; build, run `nice cargo test --release -j 2 icon_prefers`, see the icon in the fake-IPC `SET_ACTIVITY` frame (`assets.large_image`), user confirms in real Discord; app ID stays in Settings, never in code
|
||||
- [x] PROGRESS entry, INDEX line, commit `S009: …` and push
|
||||
|
||||
## End criteria
|
||||
- Integration scripts pass via `tools/smoke.sh`.
|
||||
|
|
|
|||
|
|
@ -20,20 +20,20 @@ MediaSource, object URL lifetime, no reference leak, a pref switch. D-015.
|
|||
- WPT `media-source/` tests list (pick the subset that needs no workers, ManagedMediaSource or EME)
|
||||
|
||||
## Steps
|
||||
- [ ] `git merge main` into the branch; build; mse smoke green
|
||||
- [ ] Object URLs: register in the Blob URL store (or a per-global map freed on revoke after attach and on
|
||||
- [x] `git merge main` into the branch; build; mse smoke green
|
||||
- [x] Object URLs: register in the Blob URL store (or a per-global map freed on revoke after attach and on
|
||||
document unload); no `Trusted` cycle (weak reference from the event sink); test: a MediaSource is collected
|
||||
after the page drops it (count via a debug counter in the log)
|
||||
- [ ] Attach/detach steps: readyState transitions, `sourceopen`/`sourceended`/`sourceclose` queued in spec
|
||||
- [x] Attach/detach steps: readyState transitions, `sourceopen`/`sourceended`/`sourceclose` queued in spec
|
||||
order; detach on `src` change/load(); duration change algorithm (`durationchange` on the element)
|
||||
- [ ] `HTMLMediaElement.buffered` and `seekable` from the MediaSource (intersection of active buffers; live
|
||||
- [x] `HTMLMediaElement.buffered` and `seekable` from the MediaSource (intersection of active buffers; live
|
||||
seekable range); `activeSourceBuffers` tracks selected tracks
|
||||
- [ ] `removeSourceBuffer` (backend removal, abort first), `changeType` (backend support or NotSupported),
|
||||
- [x] `removeSourceBuffer` (backend removal, abort first), `changeType` (backend support or NotSupported),
|
||||
`mode = "sequence"` through the backend append mode, `abort` resets the parser state
|
||||
- [ ] `dom_media_source_enabled` pref (on by default in Nacre); `MediaSource` absent when off
|
||||
- [ ] Smoke: mse.txt grows cases (remove + re-append, duration change, changeType same type, abort mid-append,
|
||||
- [x] `dom_media_source_enabled` pref (on by default in Nacre); `MediaSource` absent when off
|
||||
- [x] Smoke: mse.txt grows cases (remove + re-append, duration change, changeType same type, abort mid-append,
|
||||
endOfStream then append reopens) with asserts; a WPT subset page or script run that reports pass counts
|
||||
- [ ] PROGRESS entry, INDEX line, commit `S027: …` on the branch, push the branch
|
||||
- [x] PROGRESS entry, INDEX line, commit `S027: …` on the branch, push the branch
|
||||
|
||||
## End criteria
|
||||
- `tools/smoke.sh tests/smoke/mse.txt` passes with every new case asserted.
|
||||
|
|
|
|||
|
|
@ -11,13 +11,13 @@ Two Servo 0.7 engine limits sit in servo-net, which Nacre already vendors (D-012
|
|||
- `vendor/servo-net/http_loader.rs` (request header assembly), `cookie_storage.rs`, `cookie.rs` (where cookies are set and sent; how the top-level site of a request is known)
|
||||
|
||||
## Steps
|
||||
- [ ] Find where outgoing headers are built and where cookies are stored/sent with the request's top-level origin; write the minimal patch points in DESIGN.md
|
||||
- [ ] Extra request headers: a process-wide, embedder-set list (e.g. `DNT: 1`, `Sec-GPC: 1`) read in http_loader; Nacre sets it from settings; unit test in the vendored crate or a loopback test
|
||||
- [ ] Third-party cookie blocking: when on, don't store or send cookies whose domain doesn't match the top-level site (keep same-site subdomains); setting in Settings → Privacy, privacy mode turns it on; unit tests for the site matching
|
||||
- [ ] Settings rows: DNT / GPC and third-party cookies move from limited/unavailable to working rows
|
||||
- [ ] Verify against a loopback HTTP server (headers echoed, cookies on a cross-site iframe) in a smoke script; no internet needed
|
||||
- [ ] Keep every servo-net patch listed in DESIGN.md (file, function, why) so a Servo upgrade can re-apply them
|
||||
- [ ] PROGRESS entry, INDEX line, commit `S023: …` and push
|
||||
- [x] Find where outgoing headers are built and where cookies are stored/sent with the request's top-level origin; write the minimal patch points in DESIGN.md
|
||||
- [x] Extra request headers: a process-wide, embedder-set list (e.g. `DNT: 1`, `Sec-GPC: 1`) read in http_loader; Nacre sets it from settings; unit test in the vendored crate or a loopback test
|
||||
- [x] Third-party cookie blocking: when on, don't store or send cookies whose domain doesn't match the top-level site (keep same-site subdomains); setting in Settings → Privacy, privacy mode turns it on; unit tests for the site matching
|
||||
- [x] Settings rows: DNT / GPC and third-party cookies move from limited/unavailable to working rows
|
||||
- [x] Verify against a loopback HTTP server (headers echoed, cookies on a cross-site iframe) in a smoke script; no internet needed
|
||||
- [x] Keep every servo-net patch listed in DESIGN.md (file, function, why) so a Servo upgrade can re-apply them
|
||||
- [x] PROGRESS entry, INDEX line, commit `S023: …` and push
|
||||
|
||||
## End criteria
|
||||
- The loopback smoke shows the headers arriving and third-party cookies not stored/sent when blocking is on (and still working when off).
|
||||
|
|
|
|||
|
|
@ -11,13 +11,13 @@ R1-16: privacy mode must be genuinely useful: anti-fingerprinting (canvas, WebGL
|
|||
- `src/inject.rs` (how scripts are injected per page and frame), the Protection flyout in `src/ui/menus.rs`
|
||||
|
||||
## Steps
|
||||
- [ ] List the fingerprint surfaces Servo 0.7 exposes (a local test page printing each value) and pick per surface: normalise (common value) or randomise per session/site
|
||||
- [ ] Inject the spoofing script at document start in every frame when privacy mode is on (per site and global), consistent across APIs (UA ↔ platform ↔ timezone ↔ language)
|
||||
- [ ] Switch on S023's third-party cookie blocking and privacy headers with privacy mode; incognito windows start with privacy mode on
|
||||
- [ ] Protection flyout and Settings show what privacy mode does and what's limited by the engine
|
||||
- [ ] Verify: local fingerprint page before/after (smoke shots + JSON); then one run on coveryourtracks.eff.org (needs internet, no Tor/proxy) and record the result
|
||||
- [ ] Unit tests for pure logic (value choice, consistency); regression: common sites (heavy-web.txt) still work with privacy mode on
|
||||
- [ ] PROGRESS entry, INDEX line, commit `S024: …` and push
|
||||
- [x] List the fingerprint surfaces Servo 0.7 exposes (a local test page printing each value) and pick per surface: normalise (common value) or randomise per session/site
|
||||
- [x] Inject the spoofing script at document start in every frame when privacy mode is on (per site and global), consistent across APIs (UA ↔ platform ↔ timezone ↔ language)
|
||||
- [x] Switch on S023's third-party cookie blocking and privacy headers with privacy mode; incognito windows start with privacy mode on
|
||||
- [x] Protection flyout and Settings show what privacy mode does and what's limited by the engine
|
||||
- [x] Verify: local fingerprint page before/after (smoke shots + JSON); then one run on coveryourtracks.eff.org (needs internet, no Tor/proxy) and record the result
|
||||
- [x] Unit tests for pure logic (value choice, consistency); regression: common sites (heavy-web.txt) still work with privacy mode on
|
||||
- [x] PROGRESS entry, INDEX line, commit `S024: …` and push
|
||||
|
||||
## End criteria
|
||||
- Local fingerprint page shows the normalised values with privacy mode on and real ones off; Cover Your Tracks result recorded; heavy-web smoke still passes with privacy mode on.
|
||||
|
|
|
|||
|
|
@ -11,13 +11,13 @@ R1-19: protect cookies against infostealers copying the profile. Run Servo witho
|
|||
- `vendor/servo-net/cookie_storage.rs` and how `Opts.config_dir` persists cookies; `src/store/vault.rs` (existing encryption)
|
||||
|
||||
## Steps
|
||||
- [ ] Find how Servo 0.7 persists cookies under `config_dir` and the cleanest hook: site data manager calls vs. a small patch in the vendored servo-net to load/save through Nacre
|
||||
- [ ] Key in the OS keyring (crate choice recorded in DECISIONS; fallback when no keyring: say so in Settings, don't silently write plain text)
|
||||
- [ ] Encrypted cookie store: load at start before the first page, save on change (debounced) and at exit; migrate existing plain cookies once and delete the plain file
|
||||
- [ ] "Clear cookies on close" and clear-data page still work; private windows never persist
|
||||
- [ ] Verify with a restart smoke (log in to a loopback test site, quit, relaunch with SMOKE_HOME, still logged in; the profile has no plain cookie file; the cookie file is unreadable without the key)
|
||||
- [ ] Unit tests for the store round-trip and the migration
|
||||
- [ ] PROGRESS entry, INDEX line, commit `S025: …` and push
|
||||
- [x] Find how Servo 0.7 persists cookies under `config_dir` and the cleanest hook: site data manager calls vs. a small patch in the vendored servo-net to load/save through Nacre
|
||||
- [x] Key in the OS keyring (crate choice recorded in DECISIONS; fallback when no keyring: say so in Settings, don't silently write plain text)
|
||||
- [x] Encrypted cookie store: load at start before the first page, save on change (debounced) and at exit; migrate existing plain cookies once and delete the plain file
|
||||
- [x] "Clear cookies on close" and clear-data page still work; private windows never persist
|
||||
- [x] Verify with a restart smoke (log in to a loopback test site, quit, relaunch with SMOKE_HOME, still logged in; the profile has no plain cookie file; the cookie file is unreadable without the key)
|
||||
- [x] Unit tests for the store round-trip and the migration
|
||||
- [x] PROGRESS entry, INDEX line, commit `S025: …` and push
|
||||
|
||||
## End criteria
|
||||
- Restart smoke keeps the session; `grep` finds no cookie values in the profile dir; tests pass.
|
||||
|
|
|
|||
39
Plans/07 Polish pass/S031-adblock-crash.md
Normal file
39
Plans/07 Polish pass/S031-adblock-crash.md
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# S031 — Fix the SIGSEGV after an ad-blocked script load
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: high · Depends on: — · Size: M · Human: no
|
||||
> Files touched: src/adblock.rs, src/hub.rs, vendor/* (only if the fault is in Servo), tests/smoke/crash-adblock.txt, tests/smoke/pages/*
|
||||
|
||||
## Goal
|
||||
R5-01 (critical, `docs/review/phase5.md`): Nacre crashed with SIGSEGV while searching (YouTube / Google search page,
|
||||
throwaway profile). Last log line: `htmlscriptelement] Fetching classic script failed Load cancelled (… static.doubleclick.net/instream/ad_status.js …)`,
|
||||
so the ad blocker had just cancelled a script load. PROGRESS (S024) also saw heavy-web's YouTube step crash once.
|
||||
Reproduce, find the faulting frame, fix the cause (in Nacre or in vendored Servo, D-017 style — no workaround such as
|
||||
"don't cancel scripts"), and add a regression smoke.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-01 · `src/adblock.rs` · in `src/hub.rs` the `load_web_resource` / intercept path (grep `intercept`, `cancel`)
|
||||
- `docs/DESIGN.md` "Servo 0.7 embedding cheat sheet" and "Vendored servo-net patches"
|
||||
- `tools/smoke.sh` header, `tests/smoke/heavy-web.txt`, `tests/smoke/net-adblock.txt`
|
||||
|
||||
## Steps
|
||||
- [ ] Reproduce: offline first (a local page whose `<script src>` / module script / `ad_status.js`-style URL is on a local block list, loaded many times, with `tests/smoke/net/server.py`); if that does not crash, `heavy-web.txt` YouTube search step with `RUST_BACKTRACE=full`. Record the crash rate.
|
||||
- [ ] Get the faulting backtrace: `coredumpctl gdb` / run under `gdb -batch -ex run -ex bt` (debug symbols: `CARGO_PROFILE_RELEASE_DEBUG=line-tables-only` only if needed, same target/); note thread and frame in PROGRESS.
|
||||
- [ ] Find the cause (cancelled response answered twice or after drop, a dropped `WebResourceLoad`, a script-thread race, SpiderMonkey GC on a cancelled fetch, …) and write it down in two lines before changing code.
|
||||
- [ ] Fix at the cause. If it is in Servo, vendor the minimal crate like servo-net (D-017) and add the patch site to DESIGN.md "Vendored servo-net patches" (or a new "Vendored patches" list).
|
||||
- [ ] Unit test for the Nacre side when feasible (e.g. intercept answers exactly once per request).
|
||||
- [ ] Regression smoke `tests/smoke/crash-adblock.txt` (offline, local server, ≥ 200 blocked script loads incl. page reloads/navigations mid-load); add its row to CLAUDE.md §5.
|
||||
- [ ] Rerun: crash-adblock ×3, net-adblock, launch, heavy-web (internet, `SMOKE_TIMEOUT=900`) ×2 — no crash.
|
||||
- [ ] PROGRESS entry, phase5.md R5-01 → `[fixed <commit>]`, INDEX line, commit `S031: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `tools/smoke.sh tests/smoke/crash-adblock.txt` exits 0 three runs in a row; before the fix it crashed (or the cause is proven by the backtrace + test).
|
||||
- `tools/smoke.sh tests/smoke/heavy-web.txt` (SMOKE_TIMEOUT=900) shows no SIGSEGV in two runs (site failures unrelated to the crash may remain; list them).
|
||||
- `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- One cargo command at a time on `target/`; release builds take long after vendoring a crate.
|
||||
- A crash that needs internet may be timing-dependent: stress the offline repro (many tabs, fast reloads) before going online.
|
||||
- Never connect to Tor/proxies; use throwaway homes (smoke.sh does).
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Cause, fix location, crash rate before/after, any new vendored crate (S032 measures ad-block cost on the same path).
|
||||
35
Plans/07 Polish pass/S032-load-performance.md
Normal file
35
Plans/07 Polish pass/S032-load-performance.md
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# S032 — Page load performance pass
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: high · Depends on: S031 · Size: L · Human: no
|
||||
> Files touched: src/net/{bridge,dns,fetch}.rs, src/adblock.rs, src/hub.rs, src/app.rs (frame pacing), src/perf.rs, vendor/servo-net/*, tools/loadtime.sh (new), tests/smoke/loadtime*.txt, docs/engine/load-performance.md (new)
|
||||
|
||||
## Goal
|
||||
R5-02 (high): pages load slowly, especially the first load of a site. Measure where the time goes, cold vs warm, and
|
||||
remove the biggest costs. Fix inside the engine where the cost is there (vendored servo-net), no workarounds.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-02 · `src/net/bridge.rs`, `src/net/dns.rs` (top + resolve path), `src/adblock.rs` (matching)
|
||||
- `docs/DESIGN.md` "How the pieces fit", "Vendored servo-net patches" · `tests/smoke/heavy-web.txt`, `tests/smoke/cache.txt` headers
|
||||
- The S031 PROGRESS entry
|
||||
|
||||
## Steps
|
||||
- [ ] Timing harness: selftest/script command or `tools/loadtime.sh` recording per load: DNS, connect/TLS, first byte, DOMContentLoaded, load, first paint (Navigation Timing via `save`, plus Nacre-side timestamps in `nacre.log` behind `NACRE_TIMING=1`). Add the row to CLAUDE.md §5.
|
||||
- [ ] Baseline, offline (local server with a heavy page: many scripts/images/CSS, `*.nacre.test` via the DoH stub) and online (Wikipedia, DuckDuckGo, YouTube, Reddit, GitHub): cold (fresh home) and warm, 3 runs each; table in `docs/engine/load-performance.md`. Compare `NACRE_NO_BRIDGE=1` and ad block off to isolate each layer.
|
||||
- [ ] Bridge (local CONNECT proxy): per-connection overhead, connection reuse, buffering/copy sizes, thread model; fix the worst.
|
||||
- [ ] DNS: secure-DNS latency, caching, parallel A/AAAA, prefetch of the typed host; fix.
|
||||
- [ ] Ad block: matching cost per request (time 10k requests in a unit benchmark test), list loading at startup; fix.
|
||||
- [ ] servo-net: HTTP connection pool limits, HTTP/2 use, cache hits on warm loads (`cache.txt`), anything serialising requests; patch in the vendored crate with DESIGN.md patch notes.
|
||||
- [ ] Frame pacing: egui/painter redraw while a page loads (no busy loop, no blocked main thread in `load_web_resource`); check `perf.rs` numbers.
|
||||
- [ ] Re-measure, same table "after"; regression-check net-privacy, net-adblock, cache, https, launch smokes.
|
||||
- [ ] PROGRESS entry, R5-02 tag, DECISIONS if a binding choice was made, INDEX line, commit `S032: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `docs/engine/load-performance.md` has before/after tables from the harness (commands listed there); cold first-load time on the offline heavy page and on ≥ 3 real sites is measurably lower (state by how much; if a layer can't be improved, say why).
|
||||
- net-privacy, net-adblock, cache, https, launch smokes green; `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Never run two cargo commands on one `target/`. Internet timings are noisy: use medians of 3+, and the offline page for decisions.
|
||||
- Don't trade privacy for speed (DoH, ad block, HTTPS-only stay on); no proxies/Tor.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Harness command, the biggest costs found, what was left and why.
|
||||
36
Plans/07 Polish pass/S033-svg-masks.md
Normal file
36
Plans/07 Polish pass/S033-svg-masks.md
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# S033 — SVG and CSS masks render right
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: high · Depends on: — · Size: L · Human: no
|
||||
> Files touched: vendor/<servo crates for SVG images / masks> (new vendoring as needed), Cargo.toml [patch], src/hub.rs (favicons), src/ui/* favicon decode, tests/smoke/svg.txt, tests/smoke/pages/svg/*, docs/DESIGN.md
|
||||
|
||||
## Goal
|
||||
R5-03 (high): site logos render wrong — Wikipedia's globe logo is a black square. PROGRESS "Later": CSS `mask-image`
|
||||
icons paint as squares (YouTube). Find out how Servo 0.7 renders SVG (`<img src=*.svg>`, CSS backgrounds, inline
|
||||
`<svg>`, `currentColor`, filters, masks, `mask-image`) and fix the gaps in the engine. SVG favicons must show in tabs.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-03 · `docs/DESIGN.md` "Engine limits", "Vendored servo-net patches" (how a crate is vendored)
|
||||
- Servo 0.7 crate source in `~/.cargo/registry/src/*/` for the SVG path (grep `resvg`, `usvg`, `svg` in servo's net/image cache, layout, webrender glue)
|
||||
- `tools/smoke.sh` header
|
||||
|
||||
## Steps
|
||||
- [ ] Test pages `tests/smoke/pages/svg/`: Wikipedia's logo SVG (saved copy), `<img>` SVG with/without width/height/viewBox, CSS background SVG, inline SVG with `currentColor`, gradients, `<use>`, filters, masks, `mask-image: url(x.svg)` and `-webkit-mask-image`, SVG favicon; a reference PNG for each (render with `rsvg-convert`).
|
||||
- [ ] Smoke `tests/smoke/svg.txt` (offline, `python3 -m http.server` or the net server) shooting each case; add the CLAUDE.md §5 row. Record which cases fail and why (missing feature vs bug).
|
||||
- [ ] Root-cause the black square (e.g. resvg options/fonts, premultiplied alpha, missing viewBox sizing, unsupported element) and fix in the vendored crate.
|
||||
- [ ] `mask-image` / `-webkit-mask-image`: implement or fix in layout/WebRender display-list building (vendored), at least `url()` images and gradients with `mask-size/position/repeat`.
|
||||
- [ ] Inline SVG: fix what fails among the cases above that's within reach; list the rest in DESIGN.md "Engine limits".
|
||||
- [ ] SVG favicons: rasterise (resvg) for the tab strip, bookmarks, history.
|
||||
- [ ] Rerun svg.txt (all cases match their reference by eye in the shots), heavy-web Wikipedia step (logo shot), launch, chrome smokes.
|
||||
- [ ] PROGRESS entry, R5-03 tag, DESIGN.md patch list, INDEX line, commit `S033: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `tools/smoke.sh tests/smoke/svg.txt` green; its PNGs show the Wikipedia globe and the mask-image icons correctly (read them).
|
||||
- Wikipedia's real page shows its logo (heavy-web or a one-off `net-real`-style shot).
|
||||
- `nice cargo test --release -j 2` green; launch and chrome smokes green.
|
||||
|
||||
## Pitfalls
|
||||
- Vendoring layout/WebRender crates makes rebuilds long: vendor the smallest crate that holds the fix.
|
||||
- Keep each patch site listed for Servo upgrades.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Which SVG/mask features work now, which stay engine limits; vendored crates added.
|
||||
36
Plans/07 Polish pass/S034-small-fixes.md
Normal file
36
Plans/07 Polish pass/S034-small-fixes.md
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# S034 — Spelling underlines, inline autofill, "Settings updated" popup
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: medium · Depends on: — · Size: M · Human: no
|
||||
> Files touched: src/inject.rs (spell mirror JS), src/spell.rs, src/ui/chrome.rs (address bar), src/actions.rs, src/app.rs (notifications), tests/smoke/integ-spell.txt, tests/smoke/autofill.txt (new)
|
||||
|
||||
## Goal
|
||||
Three medium items: R5-04 spell-check underlines are mispositioned/mis-sized in text fields; R4-04 the address bar
|
||||
has no inline autofill (typing "wikipe" completes to "wikipedia.org" with the rest selected; Right or Enter accepts;
|
||||
with no completion Enter goes to what was typed); R4-08 a "Settings updated" popup appears when entering or
|
||||
switching tabs (source unknown — leads in `docs/review/phase4.md` R4-08).
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-04 · `docs/review/phase4.md` R4-04, R4-08 (both full text)
|
||||
- `src/inject.rs` spell module (grep `SPELL_JS`, `mirror`) · address-bar code in `src/ui/chrome.rs` (grep `suggest`, `omnibox`, `address`) · `App::on_notification` in `src/app.rs`
|
||||
- `tests/smoke/integ-spell.txt`, `tests/smoke/input.txt` headers
|
||||
|
||||
## Steps
|
||||
- [ ] R5-04: reproduce with integ-spell (shots at several font sizes, scrolled textarea, `<input>` with padding/border, zoom 150 %); fix the mirror's geometry (copy computed font, padding, border, line-height, letter-spacing, scroll offsets; follow resize/scroll) so underlines sit under the words.
|
||||
- [ ] R4-04: inline completion from history/bookmarks/top sites (host-first, prefix match, most visited), the rest selected; Right/End/Enter accept; Backspace/Delete removes the completion; typing over keeps going. Pure matching logic gets a unit test.
|
||||
- [ ] Smoke `tests/smoke/autofill.txt` (offline, seeded history) typing with selftest keys; CLAUDE.md §5 row.
|
||||
- [ ] R4-08: reproduce on a throwaway profile (switch tabs, open pages with notification permission, nacre:// pages; `dbus-monitor` for notifications); find the source and fix it so a popup only appears for a change the user made and says what changed. If it is not Nacre's, write down whose it is.
|
||||
- [ ] Rerun integ-spell, autofill, input, keys, launch smokes.
|
||||
- [ ] PROGRESS entry, R5-04/R4-04/R4-08 tags, INDEX line, commit `S034: …`, push.
|
||||
|
||||
## End criteria
|
||||
- integ-spell PNGs: underlines under the misspelled words in input, textarea, scrolled textarea, zoomed (read them).
|
||||
- `tools/smoke.sh tests/smoke/autofill.txt` green (asserts the field value and selection after typing and after Right/Enter).
|
||||
- R4-08 source named in PROGRESS with the fix (or proof it's outside Nacre).
|
||||
- `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Servo has no `caretRangeFromPoint` (S009 note); the mirror is also the right-click hit test: keep that working.
|
||||
- Inline autofill must not fire while composing IME text or when the user deleted the completion.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
What R4-08 was. Autofill ranking rule.
|
||||
38
Plans/07 Polish pass/S035-flyouts-context-menu.md
Normal file
38
Plans/07 Polish pass/S035-flyouts-context-menu.md
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# S035 — History/passwords/bookmarks flyouts and Nacre's own context menu
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: medium · Depends on: — (after S034: both touch chrome.rs) · Size: M · Human: no
|
||||
> Files touched: src/ui/menus.rs, src/ui/mod.rs (Flyout), src/ui/chrome.rs (toolbar buttons), src/ui/pages/{history,passwords,bookmarks}.rs (shared list widgets), src/hub.rs (context menu), tests/smoke/chrome.txt, tests/smoke/flyouts.txt (new), tests/smoke/context-menu.txt (new)
|
||||
|
||||
## Goal
|
||||
R5-05: toolbar History, Passwords (and other toolbar buttons that open a page today) open a flyout like Downloads,
|
||||
with "Open full page" in the flyout; reference `docs/ui-reference/old-flyout-{history,passwords,downloads}.png`.
|
||||
PROGRESS "Later": the Bookmark flyout stays open after switching tabs and shows the old page's bookmark — fix.
|
||||
R4-06: Nacre's own right-click menu on pages (links, images, text, fields, page): icons, rounded, Material You
|
||||
colours, same look as the flyouts.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-05 · `docs/review/phase4.md` R4-06 · the three `old-flyout-*.png`
|
||||
- `src/ui/menus.rs` (`flyouts`, `flyout_body`, `placement`, page context menu) · `src/ui/mod.rs` `Flyout` · `docs/DESIGN.md` "UI system (S015)"
|
||||
- Load the `app-taste` skill for the look.
|
||||
|
||||
## Steps
|
||||
- [ ] List every toolbar button and menu entry that opens a page/tab today; decide per button (flyout vs page) and note it in PROGRESS.
|
||||
- [ ] History flyout: search field, today/yesterday groups, favicon + title + time rows, click opens, middle-click new tab, "Open full page", empty state.
|
||||
- [ ] Passwords flyout: vault locked/unlocked states, site list with copy user/password, search, "Open full page" (respect the vault lock and never show passwords without unlock).
|
||||
- [ ] Any other button from the list (e.g. Bookmarks) → flyout reusing the same list rows (DRY with the full pages).
|
||||
- [ ] Bookmark flyout: closes on tab switch/navigation (and any other flyout tied to a page).
|
||||
- [ ] R4-06 context menu: Nacre-drawn menu for page/link/image/selection/editable (+ spelling entries) with icons, groups, keyboard navigation, Esc; all existing actions kept.
|
||||
- [ ] Smokes `flyouts.txt` and `context-menu.txt` (offline, dark and light shots of each); extend chrome.txt if it lists flyouts; CLAUDE.md §5 rows.
|
||||
- [ ] Rerun chrome, input, keys, launch, stores-lists smokes.
|
||||
- [ ] PROGRESS entry, R5-05/R4-06 tags, Later item removed, INDEX line, commit `S035: …`, push.
|
||||
|
||||
## End criteria
|
||||
- flyouts.txt and context-menu.txt green; PNGs show each flyout and menu in dark and light (read them).
|
||||
- chrome, input, keys, launch smokes green; `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Flyouts are egui Areas over the web view: clicks must not fall through to the page.
|
||||
- No motion work here beyond what flyouts already do: S039 adds animation (keep the open/close code in one place for it).
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Where the shared list rows live; per-button choices.
|
||||
32
Plans/07 Polish pass/S036-custom-download-manager.md
Normal file
32
Plans/07 Polish pass/S036-custom-download-manager.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# S036 — Custom download manager endpoint
|
||||
|
||||
> Category 07 Polish pass · Model: Sonnet · Effort: high · Depends on: — · Size: S · Human: no
|
||||
> Files touched: src/net/dlm.rs, src/store/settings.rs, src/ui/pages/settings.rs (Downloads section), docs/DESIGN.md, tests/smoke/net/server.py, tests/smoke/net-downloads.txt
|
||||
|
||||
## Goal
|
||||
R5-06: Settings → Downloads → managers gets a "Custom" entry so the user's own future download manager can
|
||||
receive links. Contract fixed in D-022 (`docs/DECISIONS.md`): implement it, document it in DESIGN.md
|
||||
("Custom download manager"), test it against the local stub.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-06 · D-022 in `docs/DECISIONS.md` · `src/net/dlm.rs` (whole, 200 lines)
|
||||
- Downloads section of `src/ui/pages/settings.rs` · `tests/smoke/net-downloads.txt` + the dlm stub routes in `tests/smoke/net/server.py`
|
||||
|
||||
## Steps
|
||||
- [ ] `Manager` "custom" with settings: endpoint URL (only `http://127.0.0.1`/`localhost`/`[::1]` accepted, validated), optional token; stored in settings with defaults.
|
||||
- [ ] Send: POST JSON per D-022 with the token header; 2xx = handed over, else fall back to Nacre's own downloader with a toast saying why.
|
||||
- [ ] Status ping per D-022 (Settings shows "Reachable / Not running", like the other managers).
|
||||
- [ ] Unit tests: payload building (cookies for the URL, headers), URL validation.
|
||||
- [ ] Stub route in `tests/smoke/net/server.py` logging the body; net-downloads.txt case for Custom (handed over, and fallback when the stub is down).
|
||||
- [ ] DESIGN.md "Custom download manager" section: the contract, an example request, a 20-line Python receiver example.
|
||||
- [ ] PROGRESS entry, R5-06 tag, INDEX line, commit `S036: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `python3 tests/smoke/net/server.py &` then `tools/smoke.sh tests/smoke/net-downloads.txt` green, server `/log` shows the custom POST with the token header and JSON fields.
|
||||
- `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Cookies go only to loopback; never send them anywhere else. Don't block the main thread on the POST.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Contract location (DESIGN.md section).
|
||||
39
Plans/07 Polish pass/S037-devtools-window.md
Normal file
39
Plans/07 Polish pass/S037-devtools-window.md
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# S037 — DevTools window: Servo devtools bridge, Elements and picker
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: high · Depends on: — · Size: L · Human: no
|
||||
> Files touched: src/devtools/ (new: rdp client, model), src/window.rs (new window kind), src/app.rs, src/hub.rs (devtools server delegate), src/ui/pages/devtools.rs (moves into the window), src/actions.rs, vendor/<servo devtools crate> if needed, tests/smoke/devtools.txt
|
||||
|
||||
## Goal
|
||||
R5-07 part 1 of 2: DevTools becomes a separate pop-up window (undocked; docked = attached to the browser window's
|
||||
side) in the Material You theme, fed by Servo's own devtools server (Firefox Remote Debugging Protocol) as fixed in
|
||||
D-021. This plan builds the window, the protocol client, the Elements panel (DOM tree, styles, computed, box model)
|
||||
and the element picker (hover highlight on the page, click selects in the tree). S038 adds the other panels.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-07 · D-021 · `src/ui/pages/devtools.rs` (what exists) · `src/hub.rs` `notify_devtools_server_started` / `request_devtools_connection`
|
||||
- Servo 0.7 `devtools` crate source (`~/.cargo/registry/src/*/servo-devtools*` or similar): actors list (root, tab/browsing context, walker, inspector, page style, highlighter, console, network event)
|
||||
- `src/window.rs` (window kinds) · `docs/DESIGN.md` "UI system (S015)" · load the `app-taste` skill
|
||||
|
||||
## Steps
|
||||
- [ ] Inventory the actors Servo 0.7 serves and what each returns (one table in `docs/engine/devtools.md`): what is there for Elements/Styles/Box model/Picker/Console/Network/Sources/Storage/Performance, what's missing.
|
||||
- [ ] Start the devtools server on a loopback port with a random token only when DevTools opens (allow only Nacre's own connection in `request_devtools_connection`).
|
||||
- [ ] RDP client in Nacre (TCP, length-prefixed JSON, actor routing, async on a thread, results to the UI by channel); unit test the framing.
|
||||
- [ ] DevTools window: own egui window kind, per-tab target, dock/undock toggle, panel tabs, theme.
|
||||
- [ ] Elements: lazy DOM tree (expand/collapse, attributes, text), live updates from mutation events if served.
|
||||
- [ ] Styles / Computed / Box model from the page-style actor; fill gaps by patching the vendored devtools crate (engine fix, D-021), not by injected JS.
|
||||
- [ ] Picker: highlight under the pointer on the page (highlighter actor or a Servo-side overlay), click selects the node in the tree, Esc cancels.
|
||||
- [ ] F12 / Ctrl+Shift+I and the menu open the window; old `nacre://devtools` tab redirects to it.
|
||||
- [ ] Smoke `tests/smoke/devtools.txt` (offline page): open window, tree shot, select via picker at x,y, styles shot; CLAUDE.md §5 row.
|
||||
- [ ] PROGRESS entry, INDEX line, commit `S037: …`, push.
|
||||
|
||||
## End criteria
|
||||
- devtools.txt green; PNGs show the window with the DOM tree, a picked element highlighted on the page and its styles/box model (read them).
|
||||
- `nice cargo test --release -j 2` green; launch and keys smokes green.
|
||||
|
||||
## Pitfalls
|
||||
- Servo's devtools server may be compiled out or behind a pref: check `servo` features / prefs first.
|
||||
- The devtools server must listen on loopback only; never on 0.0.0.0.
|
||||
- A second OS window shares the GL context rules from S005: check DESIGN.md before creating it.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
`docs/engine/devtools.md` actor table, client API for S038, patched devtools sites.
|
||||
34
Plans/07 Polish pass/S038-devtools-panels.md
Normal file
34
Plans/07 Polish pass/S038-devtools-panels.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# S038 — DevTools panels: Console, Network, Sources, Storage, Performance
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: high · Depends on: S037 · Size: L · Human: no
|
||||
> Files touched: src/devtools/*, vendor/<servo devtools crate>, tests/smoke/devtools.txt, docs/engine/devtools.md
|
||||
|
||||
## Goal
|
||||
R5-07 part 2 of 2: on the S037 window and client, add Console (log levels, filters, evaluation, object inspection
|
||||
with expandable properties), Network (request list, headers, timing, response preview, filters), Sources (script
|
||||
list, view with line numbers; breakpoints only if the server supports them), Storage/Application (cookies, local/session
|
||||
storage, cache), Performance basics (frame times, JS/layout timing if served). Missing data → patch the vendored
|
||||
devtools crate (D-021).
|
||||
|
||||
## Read
|
||||
- `docs/engine/devtools.md` (S037) · the S037 PROGRESS entry · `src/devtools/` client API · D-021
|
||||
|
||||
## Steps
|
||||
- [ ] Console: messages from the console actor (incl. page errors), level filter, search, evaluate, object grips expandable.
|
||||
- [ ] Network: network-event actor list, headers, timing breakdown, response preview, filter by type, clear.
|
||||
- [ ] Sources: list scripts/styles, view source; breakpoints/stepping only if Servo's thread actor supports them (else list as limit).
|
||||
- [ ] Storage: cookies (from servo-net, incl. encrypted jar after S025), local/session storage, edit/delete.
|
||||
- [ ] Performance: frame time graph (Nacre's perf data) + what the server offers; nothing fake.
|
||||
- [ ] Engine gaps for the above patched in the vendored devtools crate, each listed in `docs/engine/devtools.md`.
|
||||
- [ ] Extend devtools.txt with a shot per panel; rerun.
|
||||
- [ ] PROGRESS entry, R5-07 tag, INDEX line, commit `S038: …`, push.
|
||||
|
||||
## End criteria
|
||||
- devtools.txt green; PNGs show each panel with real data from the test page (read them).
|
||||
- `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Don't hold the main thread on protocol replies. Large responses (source, network bodies) load on demand.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
What remains below Chromium DevTools level and why.
|
||||
79
Plans/07 Polish pass/S039-motion.md
Normal file
79
Plans/07 Polish pass/S039-motion.md
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
# S039 — Motion rules and animations
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: medium · Depends on: S035 · Size: M · Human: no
|
||||
> Files touched: src/theme.rs (spring presets), src/ui/{menus,dialogs,chrome,widgets,paint}.rs, src/ui/pages/{settings,downloads,history}.rs, docs/DESIGN.md "UI system" (Motion rules), tests/smoke/motion.txt (new)
|
||||
|
||||
## Goal
|
||||
R5-08: make more of the UI move well. The rules below translate the web "animate" skill
|
||||
(open-design.ai/skills/animate → emilkowalski/skills `animate` SKILL.md + RECIPES.md) into rules for Nacre's egui UI.
|
||||
Copy them into DESIGN.md "UI system" as "Motion rules", then apply them to flyouts, dialogs, toasts, settings page
|
||||
switches, lists and toggles.
|
||||
|
||||
### Motion rules (egui)
|
||||
1. **Gate by frequency first.** Keyboard-triggered actions and anything done 100+ times a day (tab switch, Ctrl+T,
|
||||
Ctrl+L focus, find bar via Ctrl+F, address-bar dropdown rows) change instantly. Tens a day (hover, list
|
||||
navigation): only the `EFFECT` tint spring, no movement. Occasional (flyouts, menus, dialogs, toasts, settings
|
||||
sub-pages, downloads list): standard motion. Rare (welcome, first run, a finished download's done tick): the only
|
||||
place for delight. Zero animation is a valid result.
|
||||
2. **Name one purpose** before adding motion: feedback, spatial (where it came from / went), state, preventing a
|
||||
jarring change, delight (rare tier only). "Looks nice" on a frequent element = no animation. Text the user is
|
||||
reading never moves for style.
|
||||
3. **One tool:** `theme::spring` / `spring_on` / `spring_jump` with presets in `theme.rs`. egui's own
|
||||
`animation_time` stays for its built-ins only. No second animation system, no per-widget magic numbers: new
|
||||
presets go in `theme.rs` next to the others.
|
||||
4. **What moves:** opacity (`ui.multiply_opacity` / painter alpha) and the *paint* offset/scale of an already laid-out
|
||||
layer (Area position offset, `ctx.set_transform_layer` scale around a pivot). Never animate layout sizes that
|
||||
reflow content every frame; the one exception is a collapse/expand section, clipped, short. Never scale from 0:
|
||||
enter at scale 0.95–0.97 + opacity 0. Flyouts, menus and tooltips scale from their anchor (the toolbar button or
|
||||
the pointer); dialogs scale from the centre.
|
||||
5. **Curves → springs.** Entering/exiting = critically damped (no overshoot); moving on screen = critically damped,
|
||||
slightly slower; colour/hover = `EFFECT`. Never an ease-in-like start (no delay before visible motion). Settle
|
||||
times: press feedback 100–160 ms, tooltip 125–200 ms, flyout/menu/dropdown 150–250 ms, dialog 200–300 ms,
|
||||
side sheet/drawer up to 500 ms; UI motion stays under 300 ms unless it's a sheet. Bounce (damping < 1, about 0.1–0.3
|
||||
overshoot) only for things the user drags and lets go (tab drag settle) and rare delight; review the current
|
||||
`FAST`/`DEFAULT`/`SLOW` presets (damping 0.62–0.74 overshoot) against this and add critically damped variants.
|
||||
6. **Interruptible.** Springs retarget from the current value and velocity; toggling twice within a second reverses
|
||||
smoothly, never restarts from 0. **Exit the way it entered**: a closing flyout shrinks back toward its anchor and
|
||||
fades, so closed flyouts/dialogs/toasts keep painting in a "closing" state until their opacity spring is ~0.
|
||||
Asymmetric timing only where the user is deciding (hold-to-confirm: slow linear fill, fast release).
|
||||
7. **Motion setting.** Off = nothing moves or fades (the user chose it); Fast/Normal/Slow scale time (already in
|
||||
`motion_scale`). Every new animation goes through `theme::spring` so the setting applies for free.
|
||||
8. **Lists.** A list seen occasionally (history/downloads flyout opening, new-tab shortcuts) may stagger entries
|
||||
30–80 ms apart, at most the first ~6 rows, opacity + 8 px rise; stagger never blocks clicks. Items added/removed
|
||||
while open slide/fade into place (spatial). Frequent lists don't stagger.
|
||||
9. **Cost.** Request repaints only while a spring is unsettled; nothing animates in hidden windows/tabs; per-frame
|
||||
work stays trivial (egui shares the main thread with Servo). Check `perf` frame numbers before/after.
|
||||
10. **Never ship:** animation on a keyboard shortcut; scale-from-0; overshoot on menus/flyouts/dialogs; motion
|
||||
longer than 300 ms without a reason; a flyout scaling from its centre instead of its anchor; restarting
|
||||
animations on rapid toggles; layout-reflow animation (except collapse); everything entering at once in a long
|
||||
occasional list; an animation that ignores the Motion setting.
|
||||
11. **Check by eye.** Shots mid-motion (selftest frame waits), play at Slow to inspect, and spring tests that assert
|
||||
settle time per preset.
|
||||
|
||||
## Read
|
||||
- `src/theme.rs` "Motion" section (from `// Motion`) · `src/ui/menus.rs` `flyouts`/`placement` · `docs/DESIGN.md` "UI system (S015)"
|
||||
- `src/ui/dialogs.rs` (how dialogs/toasts are shown) · load the `app-taste` skill · `tests/smoke/backgrounds.txt` (perf json)
|
||||
|
||||
## Steps
|
||||
- [ ] Copy the Motion rules into DESIGN.md "UI system"; add the critically damped presets + a settle-time unit test per preset.
|
||||
- [ ] Audit: list every current animation and every candidate with its frequency tier and purpose (PROGRESS or DESIGN.md table); remove motion that fails the gate (e.g. on shortcuts).
|
||||
- [ ] Flyouts and menus: open from the anchor (scale 0.95 + fade), close back to it with a closing state; context menu from the pointer.
|
||||
- [ ] Dialogs (centre scale + scrim fade) and toasts (rise from the bottom, leave the same way, retarget on rapid toasts).
|
||||
- [ ] Settings sub-page and section switches: short crossfade + 8 px shift in the direction of travel; back goes the other way.
|
||||
- [ ] Lists: history/downloads flyout stagger on open; downloads add/remove/progress-done transitions.
|
||||
- [ ] Toggles, chips, segmented buttons, sliders: thumb/indicator springs, press feedback; check against rule 1 (no motion when keyboard-toggled if it's 100+/day).
|
||||
- [ ] Smoke `tests/smoke/motion.txt` (offline): mid-motion and settled shots for each, dark and light, Motion Off shots (instant); perf frame numbers vs before; CLAUDE.md §5 row.
|
||||
- [ ] Rerun chrome, flyouts, settings, sliders, backgrounds, launch smokes; `SMOKE_VISIBLE=1` run of motion.txt for the user to watch.
|
||||
- [ ] PROGRESS entry, R5-08 tag, INDEX line, commit `S039: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test --release -j 2` green incl. the new settle-time tests.
|
||||
- motion.txt green; mid-motion PNGs show anchor-origin scaling/fades, Motion Off shots show none (read them).
|
||||
- backgrounds/perf numbers not worse than before (state them).
|
||||
|
||||
## Pitfalls
|
||||
- egui immediate mode drops a closed Area at once: the closing state must live in `Frame`/memory, not in the widget.
|
||||
- Don't animate the web view itself (its painter is separate).
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Preset names and where the closing-state helper lives (S040 uses it).
|
||||
34
Plans/07 Polish pass/S040-little-things.md
Normal file
34
Plans/07 Polish pass/S040-little-things.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# S040 — Little things sweep
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: medium · Depends on: S033, S034, S035, S039 · Size: M · Human: no
|
||||
> Files touched: src/ui/**, src/ui/icons.rs + tools/icons.txt (if icons are added), tests/smoke/little-things.txt (new)
|
||||
|
||||
## Goal
|
||||
R5-09: "little things all work". A checklist sweep of small details across the whole UI, each item with a smoke
|
||||
shot: icons (state colours, sizes, alignment), empty / loading / error / disabled states, hover and press on every
|
||||
control, keyboard focus rings and tab order, plain copy, plus a re-check that SVG (S033), spelling (S034) and motion
|
||||
(S039) hold in everyday use.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-09 · `docs/DESIGN.md` "UI system (S015)" (tokens, motion rules) · load the `app-taste` skill
|
||||
- `tests/smoke/gallery.txt`, `chrome.txt`, `settings.txt` headers
|
||||
|
||||
## Steps
|
||||
- [ ] Inventory every screen/control (toolbar, tab strip, address bar + dropdown, every flyout, context menu, dialogs, every nacre:// page, settings sections) into a checklist table in `docs/review/phase5-sweep.md` with columns: icons, states, hover/press, focus, copy.
|
||||
- [ ] Smoke `tests/smoke/little-things.txt` shooting each screen in its states (empty, loading, error, disabled, focused, hovered), dark and light; CLAUDE.md §5 row.
|
||||
- [ ] Icons: state colours (active/inactive/disabled), sizes on the 4 px grid, filled vs outlined use consistent.
|
||||
- [ ] States: every list/page has designed empty/loading/error states with plain copy.
|
||||
- [ ] Hover/press: every clickable reacts; keyboard focus visible everywhere, Tab order sane, Esc closes.
|
||||
- [ ] Fix each finding (tick it in the sweep table); anything large goes to PROGRESS "Later".
|
||||
- [ ] Rerun little-things, gallery, chrome, settings, launch smokes; read the PNGs.
|
||||
- [ ] PROGRESS entry, R5-09 tag, INDEX line, commit `S040: …`, push.
|
||||
|
||||
## End criteria
|
||||
- `docs/review/phase5-sweep.md` table all ticked or moved to Later with a reason.
|
||||
- little-things, gallery, chrome, settings smokes green; `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Plain egui widgets left over from before the redesign are the usual offenders: grep for raw `ui.button`/`ui.label` in pages.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
What moved to Later.
|
||||
36
Plans/07 Polish pass/S041-site-passes.md
Normal file
36
Plans/07 Polish pass/S041-site-passes.md
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# S041 — Site passes
|
||||
|
||||
> Category 07 Polish pass · Model: Opus · Effort: high · Depends on: S028, S031, S032, S033 · Size: L · Human: 🧑 only the real-account Google sign-in at the end
|
||||
> Files touched: vendor/* (engine fixes), src/inject.rs (site fixes only when the engine can't be reached), tests/smoke/{heavy-web,site-doctor}.txt, docs/engine/site-passes.md (new)
|
||||
|
||||
## Goal
|
||||
R5-10 (high): with MSE merged (S028) and the crash/perf/SVG fixes in, make the everyday sites work: YouTube
|
||||
(search results layout at zero size, playback), Reddit, Wikipedia (search via real Enter), Google sign-in (to the
|
||||
password step), captchas incl. Cloudflare Turnstile (black half-disc widget), GitHub, DuckDuckGo. Fix in the engine
|
||||
(vendored Servo), no workarounds; heavy-web and site-doctor smokes are the gate.
|
||||
|
||||
## Read
|
||||
- `docs/review/phase5.md` R5-10 · PROGRESS "Later" (Turnstile, Wikipedia Enter, YouTube result list, mask-image) · `tests/smoke/heavy-web.txt`, `site-doctor.txt` headers
|
||||
- `docs/DESIGN.md` "Engine limits", vendored patch lists · S028/S029 PROGRESS entries
|
||||
|
||||
## Steps
|
||||
- [ ] Baseline: heavy-web + site-doctor (`SMOKE_TIMEOUT=900`), per-site status table in `docs/engine/site-passes.md` (works / broken + cause).
|
||||
- [ ] YouTube: search result list at zero size (layout bug: reduce to a test page, fix in the vendored layout crate); playback via MSE end to end.
|
||||
- [ ] Turnstile black widget: reduce (iframe + shadow DOM / canvas painting), fix in the engine.
|
||||
- [ ] Wikipedia search Enter, Reddit (feed, video, comments), GitHub (repo page, code view, sign-in page), DuckDuckGo (results, images).
|
||||
- [ ] Google sign-in up to the password step with a test email; captchas render and accept a click.
|
||||
- [ ] Each fix gets a reduced offline test page under `tests/smoke/pages/` and a line in a smoke; patch sites listed in DESIGN.md.
|
||||
- [ ] Rerun heavy-web ×2 and site-doctor ×2 plus launch, input, basics smokes; update the table.
|
||||
- [ ] 🧑 Ask the user (via the orchestrator) to sign in with a real Google account and to watch a `SMOKE_VISIBLE=1` heavy-web run; record the result.
|
||||
- [ ] PROGRESS entry, R5-10 tag, Later items removed, INDEX line, commit `S041: …`, push.
|
||||
|
||||
## End criteria
|
||||
- heavy-web and site-doctor green twice in a row (`SMOKE_TIMEOUT=900`), or each remaining failure listed with its engine cause in `docs/engine/site-passes.md`.
|
||||
- Every reduced test page passes offline; `nice cargo test --release -j 2` green.
|
||||
|
||||
## Pitfalls
|
||||
- Sites change and rate-limit (DuckDuckGo): don't hammer; keep reduced offline pages as the real regression tests.
|
||||
- Never connect to Tor/proxies; never type a real password (the user does that).
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Site table, engine patches added, what stays broken.
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue