Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

test: align chrome launch-contract test with headless-gated UA pinning

Luigi Agosti2544a52c3e0b
diff --git a/internal/bridge/runtime/init_test.go b/internal/bridge/runtime/init_test.go
index 12be7079..0d2d76ea 100644
--- a/internal/bridge/runtime/init_test.go
+++ b/internal/bridge/runtime/init_test.go
@@ -155,6 +155,12 @@ func TestBuildChromeArgs_DefaultChromeProviderKeepsChromeLaunchContract(t *testi
DefaultBrowser: config.BrowserChrome,
ChromeVersion: "144.0.0.0",
ExtensionPaths: []string{},
+ // Headless is PinchTab's default deployment mode and is also the mode in
+ // which the launch contract pins --user-agent: under headless Chrome the
+ // native UA leaks "HeadlessChrome/" and its UA-CH is already degraded, so
+ // pinning is a net win. In headed mode the contract intentionally leaves
+ // --user-agent off to keep Chrome's native, self-consistent UA + UA-CH.
+ Headless: true,
}
args := BuildChromeArgs(cfg, 9222)