From 0dabcb726d1b20b7d3a02c236f87cb45824440b9 Mon Sep 17 00:00:00 2001 From: daijro Date: Wed, 29 Jan 2025 03:32:40 -0600 Subject: [PATCH] Add leak warning for block_images 0.4.11 #170 --- pythonlib/camoufox/utils.py | 1 + pythonlib/camoufox/warnings.yml | 3 +++ pythonlib/pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pythonlib/camoufox/utils.py b/pythonlib/camoufox/utils.py index 1e7cdfd..7158ba8 100644 --- a/pythonlib/camoufox/utils.py +++ b/pythonlib/camoufox/utils.py @@ -588,6 +588,7 @@ def launch_options( # Set Firefox user preferences if block_images: + LeakWarning.warn('block_images', i_know_what_im_doing) firefox_user_prefs['permissions.default.image'] = 2 if block_webrtc: firefox_user_prefs['media.peerconnection.enabled'] = False diff --git a/pythonlib/camoufox/warnings.yml b/pythonlib/camoufox/warnings.yml index f136c0f..2f1bd37 100644 --- a/pythonlib/camoufox/warnings.yml +++ b/pythonlib/camoufox/warnings.yml @@ -40,6 +40,9 @@ no_region: >- block_webgl: >- Disabling WebGL is not recommended. Many WAFs will check if WebGL is enabled. +block_images: >- + Blocking image requests has been reported to cause detection issues on major WAFs. + custom_fonts_only: >- Disabling OS-specific fonts while spoofing your OS will make your browser fingerprint inconsistent. WAFs can detect this mismatch between your claimed OS and available system fonts. diff --git a/pythonlib/pyproject.toml b/pythonlib/pyproject.toml index 01aad4f..1179c73 100644 --- a/pythonlib/pyproject.toml +++ b/pythonlib/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "camoufox" -version = "0.4.10" +version = "0.4.11" description = "Wrapper around Playwright to help launch Camoufox" authors = ["daijro "] license = "MIT"