MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / isHeadlessShellBinary

Function isHeadlessShellBinary

packages/cli/src/browser/manager.ts:226–229  ·  view source on GitHub ↗

* True iff the binary at `executablePath` is `chrome-headless-shell` (i.e. the * Chromium build that still exposes `HeadlessExperimental.enable` / * `beginFrame`). Regular Chrome and `chromium` have dropped those domains, so * the engine's perf-optimized BeginFrame capture path silently degrades

(executablePath: string)

Source from the content-addressed store, hash-verified

224 * screenshot mode when those are used.
225 */
226function isHeadlessShellBinary(executablePath: string): boolean {
227 const name = basename(executablePath).toLowerCase();
228 return name === "chrome-headless-shell" || name === "chrome-headless-shell.exe";
229}
230
231/**
232 * Emit a one-time warning when the CLI selects a non-headless-shell binary on

Callers 1

warnSystemFallbackOnceFunction · 0.85

Calls 1

basenameFunction · 0.85

Tested by

no test coverage detected