Changelog
- Linux Wayland Blank Screen Fix: Disabled WebKit compositing mode by default on Linux, fixing the blank/white screen issue on Wayland sessions without GPU acceleration.
- macOS New-Window Crash Fix: Fixed a crash caused by duplicate
WKUserContentControllerscript handler registration when using--new-window, along with broader Rust panic safety hardening on all user-reachable paths. - CSP Style Injection Fix: Switched from
innerHTMLtotextContentfor style injection, fixing broken styling on sites with strict Content-Security-Policy headers. - macOS Dock Badge: Added native dock badge support via the Web Badging API. Sites that call
navigator.setAppBadge()(e.g. email, chat) now show unread counts on the macOS dock icon. - Incognito Mode: New
--incognitoflag for private browsing sessions. No cookies, local storage, or cache persist between launches. - Window Size Options: New
--width/--heightCLI flags to set custom window dimensions at build time. - CN Mirror Explicit Opt-in: CN download mirrors are now strictly opt-in via
PAKE_USE_CN_MIRROR=1. Removed automatic domain-based detection that could cause unexpected build failures. - x.com Selector Updates: Fixed broken search bar at narrow widths and updated stale CSS selectors to match current x.com layout.
- Windows ICO Transparency: Fixed transparent icon backgrounds rendering as black on Windows by building PNG-in-ICO format with sharp.
- Notification Onclick Callback: Web Notification API
onclickcallbacks now fire correctly, fixing silent notification clicks in chat and email apps. - User-Agent Update: Default user-agent strings updated to current Chrome/Safari versions, reducing embedded-WebView detection by sites.
- File Extension Handling: Fixed
check_file_or_appendcrash when downloading files without an extension (#1183). - macOS Native Menu: Surfaced native Move and Resize options in the macOS window menu.
- macOS ARM64 Build Fix: Pinned sharp-libvips to a single version, fixing duplicate native lib errors on Apple Silicon (#1182).
更新日志
- Linux Wayland 白屏修复:默认关闭 Linux 上的 WebKit compositing 模式,修复 Wayland 无 GPU 加速环境下应用启动白屏的问题。
- macOS 新窗口崩溃修复:修复
--new-window模式下WKUserContentController重复注册脚本导致的崩溃,同时对所有用户可达的 Rust 代码路径做了 panic 安全加固。 - CSP 样式注入修复:将样式注入方式从
innerHTML改为textContent,修复启用了严格 Content-Security-Policy 的站点样式失效问题。 - macOS Dock 角标:通过 Web Badging API 支持原生 Dock 角标。调用
navigator.setAppBadge()的站点(如邮箱、聊天)现在会在 Dock 图标上显示未读数。 - 隐身模式:新增
--incognito参数,启用后每次启动不保留 Cookie、本地存储和缓存。 - 窗口尺寸:新增
--width/--height参数,在构建时自定义窗口大小。 - CN 镜像显式启用:国内下载镜像改为必须通过
PAKE_USE_CN_MIRROR=1手动启用,移除了之前基于域名的自动检测逻辑。 - x.com 选择器更新:修复窄屏下搜索栏消失的问题,更新了失效的 CSS 选择器以匹配当前 x.com 布局。
- Windows ICO 透明度:修复 Windows 图标透明背景渲染为黑色的问题,改用 PNG-in-ICO 格式生成。
- 通知点击回调:Web Notification API 的
onclick回调现在能正确触发,修复聊天和邮件应用通知点击无反应的问题。 - User-Agent 更新:默认 UA 字符串更新至当前 Chrome/Safari 版本,降低被站点识别为嵌入式 WebView 的概率。
- 文件扩展名处理:修复下载无扩展名文件时
check_file_or_append崩溃的问题 (#1183)。 - macOS 原生菜单:在 macOS 窗口菜单中新增 Move 和 Resize 原生选项。
- macOS ARM64 构建修复:锁定 sharp-libvips 为单一版本,修复 Apple Silicon 上重复原生库报错 (#1182)。
Special thanks to @AllDaGearNoIdea and @sebastianbreguel for their contributions to this release. If Pake helps you, please consider giving it a star and recommending it to your friends.