Expand description
Linux backend — real WebKitGTK 6 driven via webkit6 + glib.
§Threading model
WebKitGTK is bound to the GLib main context of the thread that
initialized GTK. Methods on WpeBackend must be called from that
thread; the type is !Send. Production wiring (follow-up):
vs-cli::serve on Linux must put GTK on the OS main thread and
dispatch engine calls there via MainContext::invoke.
§Status
Real WebKitGTK-backed implementation of every primitive on the
Engine trait: open / close / snapshot / act / wait / layout /
set_viewport / save_auth / load_auth — plus inspector capture
(console + network) wired through the UserContentManager script-
message bridge. capture is the only outstanding piece (a TODO in
a follow-up that calls WebView::snapshot).
Verified on Linux CI with libwebkitgtk-6.0-dev + libgtk-4-dev
installed; this file is not built on macOS.
Structs§
- WpeBackend
- Real WebKitGTK 6 backend. Construct on the GTK main thread; all subsequent calls must come from the same thread.