From 434281479ac000651091969fa6b5c96b539f2564 Mon Sep 17 00:00:00 2001 From: Ronni Skansing Date: Sun, 17 May 2026 20:11:44 +0200 Subject: [PATCH] disable hid on remote browser instance Signed-off-by: Ronni Skansing --- backend/remotebrowser/runner.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/remotebrowser/runner.go b/backend/remotebrowser/runner.go index 611e504..13ceb7e 100644 --- a/backend/remotebrowser/runner.go +++ b/backend/remotebrowser/runner.go @@ -517,6 +517,10 @@ func (r *Runner) Run(ctx context.Context) error { // Prevents navigator.webdriver from being set to true, which is // the primary signal sites like Gmail use to detect automation. Set("disable-blink-features", "AutomationControlled"). + // Disables the HID/USB device-detection service. Without udev (common + // in containers), Chrome's HidServiceLinux crashes with SIGSEGV when + // it tries to enumerate devices via a udev handle it failed to open. + Set("disable-features", "UsbDeviceDetection"). Env(chromeEnv( "XDG_CONFIG_HOME="+filepath.Join(rootDir, "config"), "XDG_CACHE_HOME="+filepath.Join(rootDir, "cache"),