mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 12:02:04 -08:00
pythonlib: Update WebGL sample database
This commit is contained in:
parent
f6ef52a39b
commit
31963aa83b
4 changed files with 9 additions and 7 deletions
|
|
@ -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,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue