WebKitGTK's DMABUF compositor leaks ~one full-canvas buffer per
composited frame on the software-GL path (measured: bare WebGL clear
loop 50 MB/s, full app 150 MB/s, web process dead in minutes; plain 2D
putImageData presentation stays flat at 58 fps). The shim detects
WebKit-family UA + software renderer, creates the GL context on a
display:none canvas (never composited = cannot leak) handed to
Emscripten via Module.preinitializedWebGLContext, points Module.canvas
at the visible canvas (input/resize unchanged), and blits each frame
into its 2D context with fully reused buffers. No-ops on Chromium,
Firefox, and hardware-GL WebKit. Apps opt in with one script tag before
their Emscripten bootstrap.