Epic #450 (ADR-020, step 5) was written on macOS: #462 (interface-thread executor) and #463 (native window). This page
records what was validated on Windows and Linux on 2026-11-10, at develop 3af5848 and on this branch (the Linux
runs on a real desktop).
test/web/NativeIntegrationManual.cpp (target native_integration_manual, never built or run by CTest/CI) drives the two
APIs with a real browser or window and a real native dialog:
cmake --build <build> --target native_integration_manual
<build>/test/web/native_integration_manual browser [dialog-ms] # BrowserWithUILoopFrontend
<build>/test/web/native_integration_manual embedded [dialog-ms] # the build's WEBFRONT_WEBTEST_FRONTENDembedded exists in a build configured with tests and an enabled embedded frontend (the one frontend_lifecycle uses).
The dialog closes by itself after dialog-ms (1500 by default). [ok]/[FAIL] lines are checked by the program and give
the exit status; [look] lines are what only a person can confirm.
Both modes check: executor unavailable and operation refused before show() and after the loop; operations on the thread
that called show(), in scheduling order; app.nativeWindow() and ui.nativeWindow() before, during (interface thread
and worker thread) and after. Then, per platform:
| Platform | Dialog | Checked by the program |
|---|---|---|
| Windows | IFileOpenDialog (COM STA, modal loop), closed with WM_CLOSE |
an operation runs while the dialog is modal; with a window: the dialog is owned by the HWND, the window is disabled meanwhile, enabled and active again afterwards |
Linux, browser |
none (no toolkit) | the operation runs inside the GLib default context; libgio-2.0.so.0 loads |
Linux, embedded (WebKitGTK) |
GtkFileDialog parented to the GtkWindow*, cancelled through the executor |
portalParent is x11:<XID> or wayland:<handle> within 7 s; the dialog completes on the interface thread; [look]: over the window, on top, blocking, focus returned |
Windows 11 Pro 22631, MSVC 14.51 (Build Tools 18), CMake 4.3.4, Ninja, Release, -DWEBFRONT_EMBED_WEBVIEW2=ON -DWEBFRONT_WEBTEST_FRONTEND=WebView2.
- The whole tree but one file compiles with
/analyzeand/WX, the WebView2 adapter,UIExecutor.hpp,UILoop.hppandNativeWindow.hppincluded.test/unit/MessagesTests.cpp(from #457, unrelated) fails with C6262 under this compiler (#512); the test executables were then built with-DWEBFRONT_MSVC_ANALYZE=OFF. WebView2Lifecycle-ui-executor,-native-windowand-second-openpass, with the Catch2 scenarios of the executor, the browser loop and the native window.native_integration_manual browser: PASS. The system browser connected,ui.nativeWindow()isnotEmbedded, theIFileOpenDialogopened without an owner from an operation of the executor, and an operation scheduled while it was modal ran: the message-only window of the loop is dispatched by the dialog's own loop.native_integration_manual embedded(WebView2): PASS.app.nativeWindow()andui.nativeWindow()give the same top-levelHWNDof the interface thread,wrongThreadfrom a worker andclosedafter the loop; the dialog is owned by that window, which is disabled while the dialog is open, then enabled and active again. This is the manual check of a parented dialog ofdocs/FRONTENDS.mdfor Windows, with a dialog opened by the program instead of the native backend.- Complete CTest run (
--parallel 4, on this branch): 677 of 678 pass.TestOptionsConfigurationfails, unrelated to this epic: its "old build tree" fixture returns beforeproject(), which the Ninja generator selected by the machine'sCMAKE_GENERATOR=Ninjarefuses ("The detected version of Ninja () is less than the version of Ninja required"). A first run, stopped at about 603 of 678 for lack of memory, had also failedJourneyRestoreSession(rename: Access is deniedwhile restoring a package); it passed in the complete run.
- CI at 3af5848:
desktop (linux-gcc-webkitgtk)passes (Xvfb, X11), and the dispatch ofBuildAndTest.ymlondevelop(run 42776804599) passesweb-integrationwith GCC and Clang (CEF) and both sanitizer jobs. #463 had not been through the CEF jobs before. - WSL 2, Ubuntu 26.10, GCC 15.3, GLib 2.90, no GTK, no WebKitGTK:
native_integration_manual browserPASS with the real GLib loop and the page opened by the Windows browser through anxdg-openshim. - Linux desktop, 2026-11-10, this branch: Wayland session (GNOME,
xdg-desktop-portalwith the gnome and gtk backends), GCC, GTK 4.22.4, WebKitGTK 2.52.6, Release, configured with the commands below.WebKitGTKLifecycle-ui-executor,-native-windowand-second-openpass.browserwith the realxdg-open: PASS.embedded 15000under XWayland (GDK_BACKEND=x11): PASS,portalParentisx11:1a00004.embedded 15000under native Wayland (GDK_BACKEND=wayland): PASS,portalParentiswayland:<handle>: thegdk_wayland_toplevel_export_handleexport works on a real desktop. The parentedGtkFileDialogopened from an operation of the executor, an operation ran while it was open, it completed on the interface thread andgtk_window_is_activewas true afterwards.- No program fix was needed on the WebKitGTK path.
- Complete CTest run on this branch (
--parallel 4, Xvfb, GCC 16.1, Linux 7.0): the 126web-integrationcases and the other targets pass, includingWebKitGTKLifecycle-*. Thetestsexecutable does not compile with the default-Werror: GCC 16.1 reports-Wnull-dereferenceinbasic_string.hforStorageTests.cppandNativeStorageTests.cpp, which this branch does not touch. Built with-DWARNINGS_AS_ERRORS=OFF, 5 of 537fastscenarios fail, all inNativeStorageTests.cppand about symbolic links (linkRefusedexpected, another error code returned, for example8 == 7in "A link followed inside the root never reaches a temporary file"). Both are outside this epic and are to be tracked separately. - The
[look]points (over the window, on top, blocking, focus returned) were confirmed visually by a person under native Wayland (embedded 20000); they were not looked at under XWayland.
Needs libwebkitgtk-6.0-dev, GTK 4.10 or later, and xdg-desktop-portal with a backend for the portal dialog.
cmake -S . -B build-450 -DCMAKE_BUILD_TYPE=Release -DWEBFRONT_EMBED_CEF=OFF \
-DWEBFRONT_EMBED_WEBKITGTK=ON -DWEBFRONT_WEBTEST_FRONTEND=WebKitGTK -DWEBFRONT_ENABLE_TESTING=ON
cmake --build build-450 --target native_integration_manual frontend_lifecycle --parallel 4
ctest --test-dir build-450 -R "WebKitGTKLifecycle-(ui-executor|native-window|second-open)$" --output-on-failure --no-tests=error
build-450/test/web/native_integration_manual browser
build-450/test/web/native_integration_manual embedded 15000Not done: WSLg (docs/WEBKITGTK.md asks for a manual check there).
- macOS: the epic was developed and tested there (WKWebView);
native_integration_manualruns the common checks but opens no dialog on macOS. - CEF:
embeddedreports theCefBrowser*and opens no parented dialog; the window is closed by hand. - The parented dialogs of the future ADR-020 native backend: the check of
docs/FRONTENDS.mdis to be repeated with it.