mirror of
https://github.com/daijro/camoufox.git
synced 2026-11-19 00:07:28 +00:00
Raises the browser floor to beta.30 because 0.5.6 permits Playwright >= 1.61, which sends viewport isMobile/screenSize in Browser.setDefaultViewport. Only beta.30's Protocol.js schema accepts those; on beta.29 every new_context() fails with "Protocol error (Browser.setDefaultViewport)". Measured: 1.60 works on both builds, 1.61 and 1.62 fail on beta.29 and pass on beta.30. The floor means pythonlib 0.5.6 cannot run until the beta.30 release assets are published -- it must not reach PyPI first. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
20 lines
387 B
Python
20 lines
387 B
Python
"""
|
|
Camoufox version constants.
|
|
"""
|
|
|
|
|
|
class CONSTRAINTS:
|
|
"""
|
|
The minimum and maximum supported versions of the Camoufox browser.
|
|
"""
|
|
|
|
MIN_VERSION = 'beta.30'
|
|
MAX_VERSION = '1'
|
|
|
|
@staticmethod
|
|
def as_range() -> str:
|
|
"""
|
|
Returns the version range as a string.
|
|
"""
|
|
return f">={CONSTRAINTS.MIN_VERSION}, <{CONSTRAINTS.MAX_VERSION}"
|