diff --git a/pythonlib/camoufox/utils.py b/pythonlib/camoufox/utils.py index e5c2eed..55e8c36 100644 --- a/pythonlib/camoufox/utils.py +++ b/pythonlib/camoufox/utils.py @@ -595,16 +595,18 @@ def launch_options( else: # If the user has provided a specific WebGL vendor/renderer pair, use it if webgl_config: - merge_into(config, sample_webgl(target_os, *webgl_config)) + webgl_fp = sample_webgl(target_os, *webgl_config) else: - merge_into(config, sample_webgl(target_os)) + webgl_fp = sample_webgl(target_os) + enable_webgl2 = webgl_fp.pop('webGl2Enabled') - # Use software rendering to be less unique + # Merge the WebGL fingerprint into the config + merge_into(config, webgl_fp) + # Set the WebGL preferences merge_into( firefox_user_prefs, { - 'webgl.forbid-software': False, - 'webgl.forbid-hardware': True, + 'webgl.enable-webgl2': enable_webgl2, 'webgl.force-enabled': True, }, ) diff --git a/pythonlib/camoufox/webgl/webgl_data.db b/pythonlib/camoufox/webgl/webgl_data.db index c28820e..5caf7f1 100644 Binary files a/pythonlib/camoufox/webgl/webgl_data.db and b/pythonlib/camoufox/webgl/webgl_data.db differ diff --git a/pythonlib/pyproject.toml b/pythonlib/pyproject.toml index a594bb4..ca1be07 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.5" +version = "0.4.6-beta" description = "Wrapper around Playwright to help launch Camoufox" authors = ["daijro "] license = "MIT" diff --git a/settings/camoucfg.jvv b/settings/camoucfg.jvv index 2d932e9..83da945 100644 --- a/settings/camoucfg.jvv +++ b/settings/camoucfg.jvv @@ -230,7 +230,7 @@ "36063": "int | nil", "36183": "int | nil", "36203": "int | nil", - "36345": "nil", + "36345": "int | nil", "36347": "int", "36348": "int", "36349": "int",