webpool: disable password save dialog and add chromium-l10n for Russian UI

- Add --disable-features=PasswordManagerEnabled to Chromium flags
- Add credentials_enable_service=False and profile.password_manager_enabled=False to Chrome Preferences
- Install chromium-l10n package in Dockerfile for Russian browser UI
This commit is contained in:
2026-07-20 16:15:44 +00:00
parent 806c5d8e1f
commit 81608f8741
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -8,6 +8,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
RUN apt-get update && apt-get install -y --no-install-recommends \
tini \
chromium \
chromium-l10n \
xvfb \
x11vnc \
fluxbox \
+4 -1
View File
@@ -223,6 +223,9 @@ def _create_chrome_profile() -> str:
"intl": {"accept_languages": "ru-RU,ru,en", "selected_languages": "ru-RU,ru"},
"translate": {"enabled": False},
"translate_blocked_languages": ["ru"],
"credentials_enable_service": False,
"credentials_enable_autosignin": False,
"profile": {"password_manager_enabled": False},
}
with open(os.path.join(default_dir, "Preferences"), "w") as f:
json.dump(prefs, f)
@@ -377,7 +380,7 @@ def open_web(
"--use-gl=swiftshader",
"--kiosk",
"--disable-translate",
"--disable-features=TranslateUI,ExtensionsToolbarMenu",
"--disable-features=TranslateUI,ExtensionsToolbarMenu,PasswordManagerEnabled",
"--disable-pinch",
"--overscroll-history-navigation=0",
"--ignore-certificate-errors",