From 42f4221a4611fa330a63fb7cf16c38b55eacf5ea Mon Sep 17 00:00:00 2001 From: Edgar Arakelyan Date: Sun, 1 Nov 2026 18:18:03 -0800 Subject: [PATCH] fix(computer): chromium turns autofill off with AutofillSettings Chrome for Testing 156 marks AutofillAddressEnabled and AutofillCreditCardEnabled deprecated; AutofillSettings, in Chrome since 154, replaces them. One entry blocks every autofill type on every site. Checked on an amd64 VM: chrome://policy shows AutofillSettings and the rest of the app's policies as OK. Co-Authored-By: Claude Opus 5.5 --- src/agent_env/browsers/envs/chromium/chromium.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/agent_env/browsers/envs/chromium/chromium.py b/src/agent_env/browsers/envs/chromium/chromium.py index 296a628f..67064373 100644 --- a/src/agent_env/browsers/envs/chromium/chromium.py +++ b/src/agent_env/browsers/envs/chromium/chromium.py @@ -30,8 +30,8 @@ WINDOW_CLASS = "Chromium" #: Where Chrome for Testing reads managed policies; it reads neither Chromium's folder nor Chrome's. POLICY_DIR = Path("/etc/opt/chrome_for_testing/policies/managed") -#: No sign-in, sync, welcome or promotional tabs, default-browser prompt, telemetry, password or autofill prompts, -#: translation offers, updates, or location and notification prompts; and no warning bar for the flags a container +#: No sign-in, sync, welcome or promotional tabs, default-browser prompt, telemetry, password prompts, autofill on any +#: site, translation offers, updates, or location and notification prompts; and no warning bar for the flags a container #: needs, which also takes away Chrome for Testing's own bar. POLICIES = { "BrowserSignin": 0, @@ -40,8 +40,7 @@ "DefaultBrowserSettingEnabled": False, "MetricsReportingEnabled": False, "PasswordManagerEnabled": False, - "AutofillAddressEnabled": False, - "AutofillCreditCardEnabled": False, + "AutofillSettings": [{"url_pattern": "*", "blocked_types": ["all"]}], "TranslateEnabled": False, "ComponentUpdatesEnabled": False, "DefaultGeolocationSetting": 2,