Whether this is a plain browser tab, as opposed to FiveM's CEF.
false for headless, and that is an answer rather than a fallback: no window is
definitively not a browser tab. Every consumer whose CEF branch could do harm without
a DOM was read for this (MICA-177) and either guards typeof window itself
(shell/state/audio.ts), returns early on the CEF side, is component markup that
cannot render headless anyway, or — the one that mattered — asks hostRuntime() and
refuses out loud: web/src/nui/transport.ts will not pick a transport for a headless
runtime, because a node test that reaches the transport without setTransport() is a
test-configuration mistake and should read as one.
Whether this is a plain browser tab, as opposed to FiveM's CEF.
falseforheadless, and that is an answer rather than a fallback: nowindowis definitively not a browser tab. Every consumer whose CEF branch could do harm without a DOM was read for this (MICA-177) and either guardstypeof windowitself (shell/state/audio.ts), returns early on the CEF side, is component markup that cannot render headless anyway, or — the one that mattered — askshostRuntime()and refuses out loud:web/src/nui/transport.tswill not pick a transport for a headless runtime, because a node test that reaches the transport withoutsetTransport()is a test-configuration mistake and should read as one.