Repository navigation
v4.4.104 β the second pass (22 more fixes)
v4.4.104 β the second pass
A fresh review of v4.4.82 found 22 more defects β several of them caused
by the first pass. All fixed. Version math: 82 + 22 fixes = patch 104
(4 features in the minor, unchanged). Supersedes v4.4.82, whose Linux artifact
never built (a test assumed a non-root user β CI runs as root).
π΄ Regressions the first pass introduced
- Ctrl+Tab / Ctrl+W from a page corrupted the tab state. The new "act on
the sending tab" wrapper restoredw.activeunconditionally: a forwarded
Ctrl+Tab switched the tab and then reverted the index (omnibox + navigation
pointed at a hidden tab), and Ctrl+W on the last tab leftw.activepast
the end β every toolbar button went dead. It now restores only when the
command did not move the active tab, and clamps. suggestin the web-page allow-list leaked the jar's history. It
answers with this jar's titles + URLs and evals them into the page, so a
hostile site could dump the whole history by probing 2-char prefixes. It is
internal-only now.- A page could forge hotkeys. The forwarder accepted synthetic
keydown
events β andwindow.ipcis reachable from page JS, so a site could post
{cmd:'hotkey'}directly (ptoggles the VPN tunnel,wcloses the tab).
Hotkeys now require a trusted event and a capability proof (see 11).
vpnopenis internal-only too. - The VPN dock swallowed every shortcut while focused β
chrome_msghas
ahotkeyarm now. - "Clear cookies" stopped removing parent-domain cookies (the subdomain
fix flipped the match). It matches the host, its subdomains and its parent
domain again. - The new probe made working configs fail: it required reaching
1.1.1.1 / 8.8.8.8 / 9.9.9.9 and one blackholed target ate the whole budget.
Per-target timeout, the config's own server as last resort, honest errors. - The launcher reloaded itself on every page load (badge files were in the
shelf fingerprint, andsites.jsonis rewritten on every navigation), which
ate clicks and reset the search box. Badges are patched in place. - Section re-injection stacked
<script>nodes and wiped the sparkline.
The previous injection's scripts are removed; the history lives onwindow. - The scoped CSS still shipped the ~100 KB
@font-face, andscope_css
did not recurse into@media(nor skip strings/comments while matching). strip_at_rulepanicked on the section CSS's typographic dashes.
π‘ Deeper fixes
- Hotkeys carry a capability proof. Each document gets a process-wide
one-time pad inside the injected closure (never onwindow); a hotkey must
provet = pad[(n-1)%64] ^ (n & 0xff)withnrising per document id, and
a replayed proof is refused. A bare{cmd:'hotkey'}post is logged and
dropped. - WireGuard endpoints stay text and resolve on the pump thread β resolving
inparse_configmeant a blockinggetaddrinfoon the UI thread, once per
saved row on every launcher/dock render. - The VLESS address-type test asserts on the bytes the dialer writes (it
used to check a throwaway copy β exactly how the swapped codes shipped green). - A malformed VLESS UUID is refused instead of sent as all-zero.
vpn.jsonis created 0600 (the chmod-after-write left a window).instances.jsonread-modify-write is serialized by a lock file: two
jars starting together could drop each other's entries.- Case-only renames work on Windows (the "don't inherit a foreign
profile" guard compared paths case-sensitively). - Launch dedupe records only successful launches and cannot poison-panic.
tabs_sentis invalidated when the chrome document is replaced.on_accentis byte-safe (a 6-byte non-ASCII accent used to panic).- The test env-lock no longer cascades β one panicking test took seven
unrelated tests down, and the read-only-folder test now skips under root. - UI matrix additions: synthetic-keydown rejection, dock hotkey
forwarding, capability proof present (91 checks).
π§ͺ Verification
- 71 unit + 4 E2E tests green
- clippy 0 on Linux and
x86_64-pc-windows-gnu cargo check --target x86_64-pc-windows-gnu --all-targetsclean- headless UI matrix 91/91
- CI:
linux-debianβwindowsβ
π¦ Assets
JarBrowser.exeβ portable Windows build (WebView2)jarbrowser_4.4.104-1_amd64.debβ Debian / Ubuntu / Mint
Full Changelog: v4.4.82...v4.4.104