Repository navigation
Create the GTK main webview lazily - #106
Merged
Merged
Conversation
- Window create builds only GTK chrome; the main WebKitWebView materializes on first web use with the zero scheme and bridge registration riding along, so canvas apps never start WebKit processes on Linux - The canvas smoke now asserts zero WebKit processes and drops the sandbox workaround it existed for; child-webview bridge responses no longer require a main webview to exist Co-authored-by: WhiteHades <44260523+WhiteHades@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ctate
added a commit
that referenced
this pull request
Jul 11, 2026
Merged
ctate
added a commit
that referenced
this pull request
Jul 11, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The Linux host created the main WebKitWebView eagerly at every window create — so pure canvas apps booted WebKit web and network processes they never used, required libwebkitgtk sandbox workarounds in CI, and carried web machinery at runtime for no reason. The macOS host has been lazy for a while; this brings GTK to parity.
What
WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUSworkaround it existed for is deletedVerification
Containerized GTK (Ubuntu 24.04, WebKitGTK 2.52, Xvfb — the CI package set):
zig build test-webview-system-link -Dplatform=linuxpasses in-container; macOS-side suite, validate, and examples battery green