Support Playwright 1.61+.

- Remove package pin to allow Playwright >=1.61.
- Adds WebSocket frame timestamps to Juggler events.
- Extends viewport and setViewportSize protocol data with screenSize,
  isMobile, and deviceScaleFactor.
- Adds WebP screenshot support, including a default quality of 100.
- Updates the protocol schemas to describe the new fields and screenshot
  format.

Playwright 1.61 sends viewport.isMobile in Browser.setDefaultViewport, which
the juggler's protocol schema rejected -- every context creation failed, so
the whole Playwright suite errored out at fixture setup rather than reporting
results. This fixes the schema rather than capping the version.

Cherry-picked from daijro/camoufox#742 (closes #653).

Co-authored-by: LamerLink <36551116+LamerLink@users.noreply.github.com>
This commit is contained in:
LamerLink
2026-08-29 13:05:31 -06:00
committed by Jake Writer
parent d6a806e2b5
commit 2b662a8fc3
4 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ rich = "*"
requests = "*"
orjson = "*"
browserforge = "^1.2.4"
playwright = "<1.61"
playwright = "*"
pyyaml = "*"
platformdirs = "*"
numpy = "*"