pythonlib: Update WebGL sample database

This commit is contained in:
daijro 2024-12-04 00:38:12 -06:00
parent f6ef52a39b
commit 31963aa83b
4 changed files with 9 additions and 7 deletions

View file

@ -595,16 +595,18 @@ def launch_options(
else: else:
# If the user has provided a specific WebGL vendor/renderer pair, use it # If the user has provided a specific WebGL vendor/renderer pair, use it
if webgl_config: if webgl_config:
merge_into(config, sample_webgl(target_os, *webgl_config)) webgl_fp = sample_webgl(target_os, *webgl_config)
else: 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( merge_into(
firefox_user_prefs, firefox_user_prefs,
{ {
'webgl.forbid-software': False, 'webgl.enable-webgl2': enable_webgl2,
'webgl.forbid-hardware': True,
'webgl.force-enabled': True, 'webgl.force-enabled': True,
}, },
) )

View file

@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry] [tool.poetry]
name = "camoufox" name = "camoufox"
version = "0.4.5" version = "0.4.6-beta"
description = "Wrapper around Playwright to help launch Camoufox" description = "Wrapper around Playwright to help launch Camoufox"
authors = ["daijro <daijro.dev@gmail.com>"] authors = ["daijro <daijro.dev@gmail.com>"]
license = "MIT" license = "MIT"

View file

@ -230,7 +230,7 @@
"36063": "int | nil", "36063": "int | nil",
"36183": "int | nil", "36183": "int | nil",
"36203": "int | nil", "36203": "int | nil",
"36345": "nil", "36345": "int | nil",
"36347": "int", "36347": "int",
"36348": "int", "36348": "int",
"36349": "int", "36349": "int",