From a89679a52da5787ad7005a5c19d79ae8bb4faa93 Mon Sep 17 00:00:00 2001 From: ngosang Date: Fri, 6 Jan 2023 18:05:23 +0100 Subject: [PATCH] Disable Zygote sandbox in Chromium browser --- CHANGELOG.md | 1 + src/utils.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c424978..dca2d3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Kill Chromium processes properly to avoid defunct/zombie processes * Include procps (ps), curl and vim packages in the Docker image * Update undetected-chromedriver +* Disable Zygote sandbox in Chromium browser ## v3.0.0 (2023/01/04) diff --git a/src/utils.py b/src/utils.py index 076613a..29e1ede 100644 --- a/src/utils.py +++ b/src/utils.py @@ -44,6 +44,8 @@ def get_webdriver() -> WebDriver: # todo: this param shows a warning in chrome head-full options.add_argument('--disable-setuid-sandbox') options.add_argument('--disable-dev-shm-usage') + # this option removes the zygote sandbox (it seems that the resolution is a bit faster) + options.add_argument('--no-zygote') # note: headless mode is detected (options.headless = True) # we launch the browser in head-full mode with the window hidden