diff --git a/app.py b/app.py index 2cc49e2..0ceab87 100644 --- a/app.py +++ b/app.py @@ -222,7 +222,6 @@ async def run_browser_task(task_id: str, task: str, max_steps: int, model: str): "--no-sandbox", "--disable-setuid-sandbox", "--disable-dev-shm-usage", - "--disable-gpu", "--no-first-run", "--no-default-browser-check", "--disable-blink-features=AutomationControlled", # Скрывает navigator.webdriver @@ -233,7 +232,7 @@ async def run_browser_task(task_id: str, task: str, max_steps: int, model: str): "--password-store=basic", "--use-mock-keychain", "--force-color-profile=srgb", - "--disable-features=IsolateOrigins,site-per-process", + "--disable-features=IsolateOrigins,site-per-process,ThirdPartyStoragePartitioning", "--disable-notifications", "--disable-popup-blocking", "--disable-print-preview", @@ -241,6 +240,9 @@ async def run_browser_task(task_id: str, task: str, max_steps: int, model: str): "--disable-sync", "--no-pings", "--mute-audio", + "--enable-unsafe-swiftshader", # Исправляет ошибку WebGL в Docker + "--ignore-gpu-blocklist", + "--enable-webgl", "about:blank" ]