Repository navigation
Conversation
# Conflicts: # crates/zephium-engine/src/host/construction.rs # desktop/Cargo.toml
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueImportant Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
|
# Conflicts: # crates/zephium-app/src/shell/tests/sidebar_card.rs # frame/src/app/browser/tests/NewTabLook.component.test.ts # frame/src/features/sidebar/components/SidebarResizeHandle.svelte # frame/src/features/sidebar/tests/Sidebar.component.test.ts
Keep panel WebKit rendering opaque while GTK owns rounded paint and input clipping plus bounded shadow padding. Preserve short viewports and avoid redundant child moves that schedule idle redraws. Validate renderer settings on private Wayland and X11 sessions, native geometry and input at supported scales, and focused component tests. Windows and macOS native validation remains outstanding.
# Conflicts: # crates/zephium-private-fs/src/platform/unix.rs
|
Tested the current head of this PR ( Environment
1. Startup: Wayland protocol error (worked around) The window appears and the process exits immediately with
2. Scrolling YouTube crashes the web process, then the browser process Reproduced twice: open youtube.com and scroll the home feed; it crashes after about three minutes.
I could not symbolize further: Arch's debuginfod has no debuginfo for webkit2gtk-4.1 2.54.1-1. The renderer crash may well be WebKitGTK/NVIDIA-specific, but the browser process going down with it is not. It reproduces without the GPU path:
The same log line ( Workarounds tried (none usable)
On this machine, Electron apps with similar NVIDIA/Wayland rendering problems keep working with Happy to test further builds on this setup. |
|
Follow-up: the web-process crash itself is a WebKitGTK issue, not Zephium's. I scrolled YouTube in WebKitGTK's own It seemed easier to hit with YouTube's inline video previews turned off. The page grew heavier while scrolling until a reload, and the web process was at about 1.3 GB RSS shortly before the abort. So the Zephium-side part is only the browser process segfaulting after a web-process termination (reproducible with |
What
Enable experimental Linux source builds and native browser composition with WebKitGTK. Add an Ubuntu 24.04 foundation job for the workspace build, strict Clippy, tests and isolated GTK checks. Local build, strict Clippy and workspace tests pass at
ee1661d78. Hosted native jobs are running; dependency policy fails on the pre-existing rustix advisory below. The previous head passed all platform jobs. This milestone remains in draft for outstanding native macOS/Windows acceptance and dependency-policy validation.Linux now has native split/sidebar placement and clipping, sidebar transitions, tab previews, keyboard modifier tracking, panel ownership/placement, and a verified process-local GLES fallback when GTK cannot create its default context. Existing contributor sections contain the native package and build instructions. Linux now discovers and rasterizes page icons through bounded asynchronous WebKitGTK evaluation, and reuses the native selective cosmetic matcher instead of copying the generic rule index into each page. Other platforms retain their existing paths.
Why
Removing the platform refusal alone leaves a browser with broken geometry, missing previews and inconsistent native input. This milestone establishes the build and browser-shell baseline while preserving WebKit admission, sandboxing and privileged/content boundaries. It does not declare Linux release support, extension parity or Work/agentic execution parity.
Shared fixes are isolated in #451, #452, #453, #454, #455, #456, #457, #459, #460, #461, #463 and #464 and included here as dependencies. Their changes should drop from this diff as they land and main is merged. No rebase or force push is needed.
How tested
Fedora 45 ARM64 VM, GTK 3.24.52 and WebKitGTK 2.54.2:
cargo fmt --all -- --check,cargo clippy --workspace --all-targets --locked -- -D warnings, andscripts/ci/linux-test.sh cargo test --workspace --lockedpassed on the current integrated tree.Five additional isolated Fedora native checks passed: async result bounds/cancellation, dynamic favicon discovery and exact 32×32 SVG rasterization, dynamic generic cosmetics with visibility/pause/navigation, actual network blocking with pause/resume and per-view isolation, and GTK stage placement. A representative 4,096-entry cosmetic fixture reduces serialized arguments from 202,934 to 328 bytes; this is not an RSS or speed measurement.
The
ee1661d78app passed a private headless Mutter check using the VM's virgl render node: local SVG/PNG/WebP/ICO, Wikipedia, the public Zephium repository and DuckDuckGo. Sidebar favicons and DuckDuckGo result icons rendered correctly. WebGL returned the expected test pixel; its GBM-to-textures fallback was recorded. No sign-ins or result clicks. The reported search-icon failure remains unreproduced. The same immutable build also passed private Wayland/GLES checks for Wikipedia/GitHub favicons, tab switching and focused launcher open/Escape dismissal; the test recorded the VM’s Zink capability warning. Both sessions exited normally and the binary checksum remained unchanged.cargo deny --locked checkfound the new pre-existing rustix advisory RUSTSEC-2026-0486. Current origin/main reproduces the same failure, and the hosted Rust policy job fails at cargo deny. The exact dependency-only fix is prepared; changing the reserved blocker manifest/fuzz lock awaits owner coordination. No exception or policy weakening is added. Fork-lock and agentic-boundary checks pass.Remaining before review
f5003d076Wayland/X11 app acceptance after the geometry-before-presentation fix; repeated narrow/wide X11 panels stayed within the displaya23996e8ca23996e8cThe Ubuntu job loads the distribution’s bubblewrap AppArmor profile only when its ordinary-user preflight fails, preserving WebKit sandboxing and global namespace restrictions. Ubuntu background.
The larger Linux release work still includes full content-blocker/scriptlet qualification, security/secrets acceptance, extensions, Work/agentic browsing, measured performance, packaging and updates.
Native captures
Integrated development build
f5003d076, Fedora 45 ARM64, disposable Weston sessions with process-local GLES.Wayland:
GTK X11 through Xwayland:
Updated favicons on the VM render-node path,
ee1661d78: