Skip to content

v4.4.104 β€” the second pass (22 more fixes)

Choose a tag to compare

@github-actions github-actions released this 05 Dec 14:47
· 5 commits to main since this release

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

  1. Ctrl+Tab / Ctrl+W from a page corrupted the tab state. The new "act on
    the sending tab" wrapper restored w.active unconditionally: 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 left w.active past
    the end β€” every toolbar button went dead. It now restores only when the
    command did not move the active tab, and clamps.
  2. suggest in 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.
  3. A page could forge hotkeys. The forwarder accepted synthetic keydown
    events β€” and window.ipc is reachable from page JS, so a site could post
    {cmd:'hotkey'} directly (p toggles the VPN tunnel, w closes the tab).
    Hotkeys now require a trusted event and a capability proof (see 11).
    vpnopen is internal-only too.
  4. The VPN dock swallowed every shortcut while focused β€” chrome_msg has
    a hotkey arm now.
  5. "Clear cookies" stopped removing parent-domain cookies (the subdomain
    fix flipped the match). It matches the host, its subdomains and its parent
    domain again.
  6. 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.
  7. The launcher reloaded itself on every page load (badge files were in the
    shelf fingerprint, and sites.json is rewritten on every navigation), which
    ate clicks and reset the search box. Badges are patched in place.
  8. Section re-injection stacked <script> nodes and wiped the sparkline.
    The previous injection's scripts are removed; the history lives on window.
  9. The scoped CSS still shipped the ~100 KB @font-face, and scope_css
    did not recurse into @media (nor skip strings/comments while matching).
  10. strip_at_rule panicked on the section CSS's typographic dashes.

πŸ›‘ Deeper fixes

  1. Hotkeys carry a capability proof. Each document gets a process-wide
    one-time pad inside the injected closure (never on window); a hotkey must
    prove t = pad[(n-1)%64] ^ (n & 0xff) with n rising per document id, and
    a replayed proof is refused. A bare {cmd:'hotkey'} post is logged and
    dropped.
  2. WireGuard endpoints stay text and resolve on the pump thread β€” resolving
    in parse_config meant a blocking getaddrinfo on the UI thread, once per
    saved row on every launcher/dock render.
  3. 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).
  4. A malformed VLESS UUID is refused instead of sent as all-zero.
  5. vpn.json is created 0600 (the chmod-after-write left a window).
  6. instances.json read-modify-write is serialized by a lock file: two
    jars starting together could drop each other's entries.
  7. Case-only renames work on Windows (the "don't inherit a foreign
    profile" guard compared paths case-sensitively).
  8. Launch dedupe records only successful launches and cannot poison-panic.
  9. tabs_sent is invalidated when the chrome document is replaced.
  10. on_accent is byte-safe (a 6-byte non-ASCII accent used to panic).
  11. 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.
  12. 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-targets clean
  • 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