#!/usr/bin/env python3 """Minimal WebKitGTK 6.0 browser for the engine comparison: one GTK 4 window, one tab per URL. Usage: webkit_shell.py URL... open every URL in its own tab at once webkit_shell.py --plan sites.txt --out DIR open the plan's sites one by one (driver mode, see run.sh) Window 1556x815 (a maximized niri column on the 1600x900 monitor, the size the Nacre windows get), ephemeral network session (no profile on disk), default hardware acceleration policy. Tuning flags (each off by default): --related (tabs share the first tab's web process), --mem-limit MB (memory pressure settings on the web context and the network session), --cache-model viewer|browser|docbrowser, --no-page-cache, --hw always|never, --ua chrome (a Chrome 140 Linux user agent); GSK_RENDERER in the environment picks GTK's renderer. In driver mode, for each line of the plan (`label url settle_seconds`) it writes the label to DIR/mark, opens the URL in a new tab, waits the settle time (with `play`: 10 s in, saves check-