-
-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setting screen.width, screen.height is invalid #89
Labels
detection issue
Potential leak in Camoufox.
Comments
Hello,
|
Regarding setting the width and height of the screen, I understand that you may have misunderstood what I meant. |
Thanks. I see the issue, it doesn't look like it always sets properly. I'll look into it this weekend. |
daijro
added a commit
that referenced
this issue
Dec 4, 2024
Fixed in latest release. |
budyaya
pushed a commit
to budyaya/camoufox
that referenced
this issue
Jan 4, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
camoufox = 0.3.10, firefox=132
website: https://www.browserscan.net/
code:
class ScreenInfo(Screen):
min_width = 1055
max_width = 1920
min_height = 960
max_height = 1080
fg = FingerprintGenerator()
fire = fg.generate(screen=ScreenInfo(), os='windows', browser='firefox', device='desktop')
fire.videoCard.vendor = 'Google Inc. (Intel)'
fire.videoCard.renderer = 'ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0), or similar'
fire.screen.width = 1920
fire.screen.height = 1080
with Camoufox(
geoip=True,
proxy={
"server": "http://127.0.0.1:7890",
"username": None,
"password": None
},
os=["windows", "macos", "linux"],
allow_webgl=True,
i_know_what_im_doing=True,
# humanize=2.0,
fingerprint=fire,
config={
"navigator.language": "en",
"navigator.languages": ["en", 'en'],
"screen.width": 1920,
"screen.height": 1080,
"window.outerHeight": 1040,
"window.outerWidth": 1920,
'webrtc:ipv4': '188.253.4.94',
'webrtc:ipv6': '',
"timezone": "Asia/Singapore"
# "webgl.disable": True
},
screen=Screen(min_width=1920, min_height=1080, max_width=1920, max_height=1080),
window=(1920, 1080)
) as browser:
page = browser.new_page()
page.goto("https://www.browserscan.net/")
screenshot:

question:
I have tried many times, but the width and height of the screen cannot be changed. How should I deal with this?
The text was updated successfully, but these errors were encountered: